Тёмный

How to Make a 2D Game in Java #1 - The Mechanism of 2D Games 

RyiSnow
Подписаться 25 тыс.
Просмотров 621 тыс.
50% 1

This is a tutorial for Java 2D beginners so I take a lot of time explaining the basic 2D programming mechanics, such as how the game loop works.
First, we make a simple treasure-hunting game and then a more advanced 2D action RPG.
Full Playlist:
• How to Make a 2D Game ...
Because of that, I expect the pacing will be a bit slow so please keep that in mind and feel free to skip if you feel I'm talking about something you already know.
If you have any questions, feel free to leave comments. I will do my best to answer!
Guidelines for using Blue Boy Adventure's code and assets:
docs.google.com/document/d/1q...
(Nov 21th, 2022)
The Russian subtitles have been added. Someone who prefers to be anonymous kindly offered to work on this. Thank you so much! You're too kind.
(Dec 12, 2022)
The Swedish subtitles have been added by Bandicam Nick! Thank you so much!
(Dec 28, 2022)
The Spanish subtitles have been added by Sorcerian_Bootleg ( / ds5_bootleg ! Thank you so much!
Timestamps:
0:00 Intro
1:00 Roadmap
2:27 Project Setup
5:56 Resolution and Scaling
7:45 Screen Size
10:09 Displaying the Window
13:02 How 2D Games Work
15:00 Starting the Game Clock (Thread)
#javagamedevelopment #java2D #javagametutorial #javagameprogramming #rpg #action

Опубликовано:

 

22 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 470   
@RyiSnow
@RyiSnow 2 года назад
Thank you for the 50K views! Didn't expect so many people are still interested in developing games from scratch! (Nov 21, 2022) The Russian subtitles have been added. Someone who prefers to be anonymous kindly offered to work on this. Thank you so much! You're too kind. (Dec 12, 2022) The Swedish subtitles have been added by Bandicam Nick. Thank you so much! (Dec 28, 2022) The Spanish subtitles have been added by Sorcerian_Bootleg (twitter.com/DS5_Bootleg)! Thank you so much!
@sajeucettefoistunevaspasme
@sajeucettefoistunevaspasme 2 года назад
it's interesting
@sajeucettefoistunevaspasme
@sajeucettefoistunevaspasme 2 года назад
why would I learn to use a game engine when I can learn to make the game engine
@realzguardian
@realzguardian Год назад
Man these tutorials are the best!
@cayman_islands
@cayman_islands Год назад
what is the name of this game?.is it on steam?
@judahrue6793
@judahrue6793 Год назад
I am just now starting a java class in college, so I'm hoping this series will help me learn quicker and learn to create games :) thanks!
@shawnulam4096
@shawnulam4096 8 месяцев назад
I have to say, I never comment. Just got my degree in Software Development and I've learned more from your tutorials than any class I took at college. Excellent tutorials with a lot of good information. Thank you
@RyiSnow
@RyiSnow 8 месяцев назад
Congratulations on your degree! I am very happy if my tutorials helped you. Thank you for letting me know! I hope you continue to enjoy programming :)
@zoiskiee28
@zoiskiee28 2 месяца назад
Yep, taking Software Development as well. Intro to Python and C so far, but a lot of that stuff I knew already. Haven't gotten my Associates yet, almost there though.
@mihirmalladi8494
@mihirmalladi8494 Год назад
He started this game a year ago and is still working on the game just for us! Thank you so much!
@christophereberhart7487
@christophereberhart7487 Год назад
This tutorial is really useful, thanks so much for explaining these concepts in a simplified way!
@iloveihop07
@iloveihop07 Год назад
I just found this series, excellent videos, and it's been exactly one year! I look forward to following along this series!
@RyiSnow
@RyiSnow Год назад
Welcome!
@jarrodmcevoy
@jarrodmcevoy 2 года назад
The amount of effort you put into these videos is amazing!!! Definitely my favourite youtuber. Keep up the great tutorials please :)
@RyiSnow
@RyiSnow 2 года назад
Thank you!
@sayvillegames
@sayvillegames 9 месяцев назад
@@RyiSnow Can you please make a tutorial on how to code a sprite sheet class using java so that way I can use my images
@Viro102
@Viro102 2 года назад
Wow the production quality is awesome keep up the good work!! this is amazing
@SlothfulSage285
@SlothfulSage285 2 года назад
This was one of the best tutorials I have ever done! I loved how informative you were! Thanks for making this series!
@user-ri2ms2mm7w
@user-ri2ms2mm7w 2 года назад
My friends, search for your life purpose, why are we here?? I advise you to watch this series and this video 👇 as a beginning to know the purpose of your existence in this life. ru-vid.com/group/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B- ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7d16CpWp-ok.html
@doraymon7067
@doraymon7067 Год назад
Plz How did you draw the character, is there tutorial??
@netidk
@netidk 11 месяцев назад
its later on in the playlist @@doraymon7067 you need to watch the whole thing to understand if your just starting
@chinmayanand896
@chinmayanand896 Год назад
Hey, I have a request that please continue this series till end and do not stop this. because this series gave me motivation to start learning java and do things in it. I know i am going to learn a lot from this series. i am already a fullstack dev but using javascript not java. But finally i am going to start learning java from this series. I love making games i think. so now i am going to start. Thank you so much for your efforts.
@drstowaters
@drstowaters Год назад
I left the game for 4 months on episode 12 and I've forgot everything! So I'm completely starting over again! The reason why I am starting over again is because you, RyiSnow you have probably the most straightforward toturials that actually works, thank you! The grind is on
@ViciousCruzan
@ViciousCruzan 2 года назад
Thank you so much for making these tutorials. Your videos have helped me get a lot better at creating games.
@h9artXOXO
@h9artXOXO 2 года назад
Thank you so much! You really woke my interest in retro game and game development up! Keep up the good work!
@cedricsahaghian1605
@cedricsahaghian1605 Год назад
I don't usually comment but I'm gonna put a thank you message on each and every videos you made for this long and excellent tutorial. Thank you so much for taking the time to do these videos, you're a great teacher!
@blue_gunfox
@blue_gunfox 2 года назад
Thank you so much, You earned my sub, Keep up the great work, the world needs more people like you who are kind and will share their knowledge :)
@graphitic5578
@graphitic5578 2 года назад
this is really enough for me. i read one java book but it's outdated though i could learn some useful techniques through it but it was slow, its 1000 pages long. this is just a gifted playlist, thank you.
@ducganktem201
@ducganktem201 9 месяцев назад
the tutorial is already 2 year old, glad it's still here. Also this is great start learning basic java for those beginners like us.
@emmanuelomach4596
@emmanuelomach4596 2 года назад
I am eagerly waiting for more, can't wait! So exciting
@RyiSnow
@RyiSnow 2 года назад
Glad to hear that! Editing the part 2 now :)
@WhiteyInJapan
@WhiteyInJapan Год назад
I just discovered your channel . Great work. I cant wait to do this
@davidmezei08
@davidmezei08 11 месяцев назад
hey, I just wanted to let you know that you're amazing! I just started to make the game,and I have great progress with it! Thank you!
@shresthpratap4208
@shresthpratap4208 2 года назад
Bro thank you for this series its really amazing, I am eagerly waiting for the second episode !
@RyiSnow
@RyiSnow 2 года назад
Glad you liked it!
@user-ri2ms2mm7w
@user-ri2ms2mm7w 2 года назад
My friends, search for your life purpose, why are we here?? I advise you to watch this series and this video 👇 as a beginning to know the purpose of your existence in this life. ru-vid.com/group/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B- ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7d16CpWp-ok.html
@JZSNooB
@JZSNooB 2 года назад
Awesome, can't wait to see how this series goes!
@RyiSnow
@RyiSnow 2 года назад
Stay tuned! I think it's gonna be the longest tutorial series on my channel lol
@rojcewiczj
@rojcewiczj Год назад
this is the best tutorial I've ever experienced! Thank you so much!
@greenfractal
@greenfractal Год назад
Thanks for this tutorial, it's excellent! Btw, if anyone here is getting an error adding the Dimension (like I did), remember you have to import java.awt.Dimension. Just thought I'd mention this since I wasn't paying close attention to that part of the video (looks like Eclipse suggested it automatically) and was confused at first. Leaving this here just in case anybody else is scrolling through the comments for an answer. XD
@BIackVenom
@BIackVenom 9 месяцев назад
maybe can you tell me what may be wrong when I try to run the code? it alway says: The selection cannot be launched, and there are no recent launches I don't know what I did wrong...
@memesterlizer7536
@memesterlizer7536 7 месяцев назад
Thanks alot bro
@bokuwamonkeysBiggestFan
@bokuwamonkeysBiggestFan 6 месяцев назад
thank you so much for this comment, I was sitting here for the past 10 minutes trying to figure out how to fix it
@franciscotorresreyes3528
@franciscotorresreyes3528 26 дней назад
You are the man, sir! Thank you much for all the time and effort you put on this series!
@trexion3443
@trexion3443 8 месяцев назад
We must protect this man at all costs.
@somecuber1228
@somecuber1228 2 года назад
very well explained and a great video, excited to follow up on the other videos
@amber._.rose333
@amber._.rose333 Год назад
heyy, I really liked the first video, and will continue watching them! Thank you for the great work!
@lipewarrior
@lipewarrior 2 года назад
First, i love the way you explain, so calm. And, another observation, i love your accent, is so easy to understand because i'm a non native english. Thank you so much!
@luib2775
@luib2775 11 месяцев назад
Hey thank you soooo much for this tutorial. I had Java in one of my lectures, but we never actually learned how to make a game and stuff, just the basics like objects and lists which was kinda boring, since I never learned the practical purpose of it all. I'm so happy you made this tutorial, so I can actually use my knowledge to learn something practical and fun now. Thanks for providing such great resources for freee :)
@Greennoob2
@Greennoob2 2 года назад
This is really great. I'm tempted to start following along
@RyiSnow
@RyiSnow 2 года назад
Please come along :D
@musictoze
@musictoze 2 года назад
This is exactly the tutorial I was looking for! Thank you very much (And in addition it allows me to learn English :D)
@Entity_The_Demon
@Entity_The_Demon Год назад
your english already sounds perfect xD
@musictoze
@musictoze Год назад
@@Entity_The_Demon I know x)
@srizanbuddathoki1120
@srizanbuddathoki1120 Год назад
One of the best tutorial for beginners out there. Lots of Love and Respect from Nepal..
@AbuCheetos
@AbuCheetos 2 года назад
i was looking for a custom font integration and i got here for no reason, i watched the content of your channel to see what you offer and i automatically subbed to your channel. Thanks for speaking slowly be cause i'm non english, and thanks for the content that you released, i'm gonna view all of your vids !
@Leo-rf5bn
@Leo-rf5bn 2 года назад
This Channel is AWESOME!!!
@lucastucker2783
@lucastucker2783 7 месяцев назад
Can't wait to start this project. Thanks so much for this tutorial
@devoiddude
@devoiddude 2 года назад
Thank you so much for this, very helpful as always, please keep the videos coming, they are amazing.
@RyiSnow
@RyiSnow 2 года назад
A lot are coming :P
@dattebasa5185
@dattebasa5185 Год назад
Congratulations, it has been 1 year since you started this tutorial. I hope to see more of this, I happened to come across it today. Thank you.
@RyiSnow
@RyiSnow Год назад
Can't believe it's already been a year. Time surely flies by! Thank you for stopping by and hope you will enjoy the series.
@koonn123
@koonn123 4 месяца назад
MY DUDE, First of ALL hello from Brazil, second YOU ARE AMAZING, thank you so much for sharing this HUGE amout of good info. may the algorithm gods forever recomend your videos
@turcorulez
@turcorulez Месяц назад
Está estudando Java irmão?
@officialdreamplayz
@officialdreamplayz Год назад
i m glad to find this playlist now i will learn easily with your help making 2d games
@dambrew4419
@dambrew4419 2 года назад
Keep it up dude, love your work :)
@almusknowsbetter7547
@almusknowsbetter7547 10 месяцев назад
You just got a new subscriber! Thank you for sharing your knowledge!
@user-yn7jg5to3u
@user-yn7jg5to3u Месяц назад
This is really cool! Thanks soo much RyiSnow!
@eliteirizz8456
@eliteirizz8456 Год назад
Thank you so much, you explain so clearly and slow for learners like me which have a bad brain functionality. I already learn a lot ♥
@StannyObelisk
@StannyObelisk 2 года назад
You are a king amongst men, thank you so much for this series :)
@user-ri2ms2mm7w
@user-ri2ms2mm7w 2 года назад
My friends, search for your life purpose, why are we here?? I advise you to watch this series and this video 👇 as a beginning to know the purpose of your existence in this life. ru-vid.com/group/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B- ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7d16CpWp-ok.html
@Nocturnal_Spectre
@Nocturnal_Spectre 4 месяца назад
Thank you so much for sharing and teaching this project, I look forward to completing it!
@qpdbwvwdbqp4730
@qpdbwvwdbqp4730 2 года назад
Im very excited to make my first 2D Game with RyiSnow. Thanks bro for making this tutorial for beginners like us.
@calebthoburn5249
@calebthoburn5249 Год назад
Tutorial is very helpful, thank you!
@tophyy906
@tophyy906 Год назад
Making a group project for college and I'm going to follow this guide. thanks for making this :)
@coolman36kmaway34
@coolman36kmaway34 Год назад
I love your channel it explains much more than other ones 😍
@programer6664
@programer6664 2 года назад
After I saw the red background that I set I got very happy, at least I saw that something is working maybe now I can focus on programming and quit gaming because the past semester I am just copying my classmates work and not attending classes but when I see and try this tutorial then it worked, It got me very excited and motivated to continue, thank you very much brother keep up.... -to someone who can relate in this comment like it I'm just curious if someone experienced it beside me.
@koalpu4207
@koalpu4207 Год назад
Really Great Tutorial Helped me a lot!
@wyrmgard8917
@wyrmgard8917 2 года назад
Love your tutorials. Youre the best!
@giorgioguglielmone6528
@giorgioguglielmone6528 Год назад
Beautiful tutorial, well done and full of explanations. Although I program in C++ and I'm learning how to create a 2D video game using SDL2 and C++ in the Visual Studio C++ 2022 community, I will closely follow yours, because complete and then learned the techniques I will bring it to C++.
@ikegg
@ikegg 5 месяцев назад
I love your tutorials. Keep it up!
@anonymous-3695
@anonymous-3695 Год назад
You are amazing and you explain so clearly, thank you :)
@anneyshas
@anneyshas 7 месяцев назад
Your teaching style is highly engaging. I have never enjoyed making games, but now I want to try again. Thank you!!!!
@RyiSnow
@RyiSnow 7 месяцев назад
Glad to hear that. Hope you enjoy the series :)
@elguerojusticiero
@elguerojusticiero 3 месяца назад
amazing english man. im learning too and can read and write ok but speaking it is much harder and listening to you motivates me to keep working at it
@NikitaBomba112
@NikitaBomba112 Год назад
Thanks you for this video!
@brinklebros7136
@brinklebros7136 5 месяцев назад
your a very passionate person about computer science and seem like you have lots of experience. your videos make me happy and I learn so much thank you!
@Dekishi
@Dekishi 6 месяцев назад
I'm very happy that people like you exist. wish you well in the future man stay safe
@dymmo99
@dymmo99 8 месяцев назад
just started learning java and this is helping me learn thx
@bluestreak711
@bluestreak711 Год назад
RyiSnow!!! I am so glad to see you are still making tutorial videos! Not only were your tutorials for the text based adventure game in java simple and easy to follow, you spent a significant amount of time replying back to all my questions that I left in comments and helped me troubleshoot. I have taken a long break from Java and I was looking you up again because I wanted go over your text based adventure game tutorial again because I wanted to make a 2D game, but here you already have a tutorial for 2D game making!!! I just went over 52 of thenewboston's java tutorial videos to refresh myself with the basics again and now I am looking for a bit of application before I go over the rest. Would you recommend that I contain my excitement and refrain from your 2D game making series and first refresh myself with the text based adventure game or would it be okay to jump right in to your 2D game making series? P.S. I loved your reviews for Hiragana Battle, Katakana War and Kanji Combat that I also bought the series on steam though I have not played through much of the series as of yet. P.S.S I have not been on your channel for almost four years, so I am excited to go through your channel to see all the other new things you have added since then. P..S.S.S I am curious to see if I can recreate that glitch with the switch statement in the text adventure game that caused us both a headache. I am not sure if your remember, but before you demonstrated how to pull in methods from different classes, you put everything in a switch statement because you were saving the use of multiple classes for a later tutorial. Our code was exactly the same and I still was unable to run it at the time. I had to use a lot of if/else statements and it was messy. It also worked when I followed your later tutorials and separated everything into different classes, but I think it was the switch statement inside of a switch statement that did not want to work.
@RyiSnow
@RyiSnow Год назад
Hi, welcome back, it's always great to see someone who was watching my older videos coming back. Also, thank you so much for your kind donation! About starting the 2D series, I think you're ready to jump into it. The mechanics are quite different from my text adventure game so you don't really need to refresh that tutorial. That said, the 2D tutorial is still meant for beginners and I've added as many as explanations I could so I don't think you will get lost. In any case, if there's something you don't understand, you can always leave a comment. Good luck!
@taimitops
@taimitops Год назад
A true fan.
@mehmetkeskin8118
@mehmetkeskin8118 4 месяца назад
this is the most helpfull vidoe that I have ever watched. THANK YOU.
@shunkitajima1122
@shunkitajima1122 11 месяцев назад
日本語字幕も付いていて、分かりやすかったです!
@valsk01
@valsk01 Год назад
omg, such a good tutorial. I came from the language Python. Clear and easy to follow along tutorial; keep it up :)
@Bashi_boi
@Bashi_boi Месяц назад
I've watched 1 episode and i know this is gonna be good
@janstefangehrmann1139
@janstefangehrmann1139 Год назад
Oh I like this. It is very interesting to me, to see someone coding a game from scratch :)
@jamesschraffl6820
@jamesschraffl6820 2 года назад
Yes new tutorial!!! So excited
@RyiSnow
@RyiSnow 2 года назад
Sorry for the wait!
@jamesschraffl6820
@jamesschraffl6820 2 года назад
@@RyiSnow its always worth the wait!
@michaelhall4795
@michaelhall4795 Год назад
Great work RyiSnow, Thanks for the tutorial.
@RyiSnow
@RyiSnow Год назад
You're very welcome and thank you so much for the donation!!
@artebotastic8846
@artebotastic8846 2 года назад
You just earned a new subscriber!
@_thiago_vieira_
@_thiago_vieira_ 4 месяца назад
Very interesting until now, in these few seconds I learned a lot of interesting things! I will keep developing.
@loetgurke
@loetgurke 2 года назад
I have basic knowledge in java i learned in school, but this is the non plus ultra :) keep your good mood
@doraymon7067
@doraymon7067 Год назад
I love the tutorial so much thank you ♥️♥️
@zixvirzjghamn737
@zixvirzjghamn737 3 месяца назад
Thank you for making this video, I know how java works, and how to make a 2d game in javascript, and this provides enough information on how to make a basic gameloop, though I may also view the next 3 videos if I get confused
@rominaprograma
@rominaprograma Год назад
thank you so so so much!! i´m learning java since a month ago and watching for projects to do. This is amazing! I´m working with netbeans
@imago6229
@imago6229 3 месяца назад
The best tutorial ever uploaded on RU-vid.
@ChezRG-YT
@ChezRG-YT 2 года назад
great video keep up the great work !
@celioishikawa5321
@celioishikawa5321 2 года назад
Thank you very much, creating a game is very exciting!
@kejeszankejeszan4071
@kejeszankejeszan4071 2 года назад
Great. waiting for more
@riceomu2135
@riceomu2135 Год назад
日本語によるyoutube上のゲーム教材が少ないため助かりました。しっかり勉強します! I am pleasure to this video because It's a little bit of created educational Java's video with Japanese. You have completed nice job!
@lola17g
@lola17g 2 года назад
Thanks, I start to learne Java, and your videos helps a lot.
@user-ri2ms2mm7w
@user-ri2ms2mm7w 2 года назад
My friends, search for your life purpose, why are we here?? I advise you to watch this series and this video 👇 as a beginning to know the purpose of your existence in this life. ru-vid.com/group/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B- ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7d16CpWp-ok.html
@maxfrischdev
@maxfrischdev 2 года назад
First of all, thank you for making and sharing this great series, as a Java-seito I GREATLY appreciate it! 🤘🏻🤗 Looking forward to learn a lot from it and combine the joy of learning programming, creating something and.. our good old friend.. feed the gaming addiction 🤣
@user-ri2ms2mm7w
@user-ri2ms2mm7w 2 года назад
My friends, search for your life purpose, why are we here?? I advise you to watch this series and this video 👇 as a beginning to know the purpose of your existence in this life. ru-vid.com/group/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B- ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7d16CpWp-ok.html
@dalixman2754
@dalixman2754 Месяц назад
Great Tutorial
@gaelwrembel2204
@gaelwrembel2204 Год назад
great video! thank you!
@rakeshdas9792
@rakeshdas9792 Год назад
Sir you done a great job really appreciate your work love you ❤❤❤❤❤❤
@lionelperrine7884
@lionelperrine7884 Год назад
Very nice tutorial!! i'm using Windows Builder in eclipse to create my first game.
@Khey1
@Khey1 4 месяца назад
Hi! im from emxico so my english is not the best.. but, its incredible how much effort you put in this, you helped a lot of people, thank you for that
@pedropalazzi1870
@pedropalazzi1870 Год назад
you are the best, my boy!!!!!
@AjitPratapSingh904
@AjitPratapSingh904 Год назад
this is very helpful thank you
@sergeysoprunovvv9656
@sergeysoprunovvv9656 7 месяцев назад
Please, someone give this man an oscar for making those series on Java ☕️ You rock!
@RilAether
@RilAether 2 года назад
thanks, keep up, you helped me a lot :)
@alexrets9641
@alexrets9641 11 месяцев назад
Thank you so much!)))
@Hassan-lv9di
@Hassan-lv9di 4 месяца назад
AND LET'S BEGIN THIS ADVENTURE! THANK YOU !!!
@projectgame6128
@projectgame6128 2 года назад
this is perfect thanks so much
@pauliuszabinskas8377
@pauliuszabinskas8377 Год назад
Very helpful!
@maryemchakroun6489
@maryemchakroun6489 Год назад
can t thank you enough ,fr !!!!
@dimastorres8530
@dimastorres8530 5 месяцев назад
I have a PhD in chemistry and humbly call you a genius. Thank you for your work!
@kuindios5477
@kuindios5477 8 месяцев назад
Saludos desde Venezuela. realmente he aprendido bastante mirando tus tutoriales. aunque esten en ingles.
@omerfarukdansmaz1757
@omerfarukdansmaz1757 2 года назад
You're the best bro!
@graffillk9614
@graffillk9614 7 месяцев назад
First Thanks man for this tutorial it is really helpful to begin in java 2D Game Dev. Second, I recommend to learn JFrame before this tutorial it will be better for comprehension
Далее
1 Year of Learning Game Development In 6 Minutes
6:01
This or That 🛍️
00:52
Просмотров 9 млн
Smart Sigma Kid #funny #sigma #comedy
00:26
Просмотров 5 млн
Multithreading in Java Explained in 10 Minutes
10:01
Просмотров 896 тыс.
I Made the Same Game in 8 Engines
12:34
Просмотров 3,9 млн
How to Start Gamedev in 2024
10:28
Просмотров 445 тыс.
How NVIDIA just beat every other tech company
9:20
Просмотров 1,2 млн
Can You Really Make A 2D Game In Unreal?
6:09
Просмотров 89 тыс.
World and Camera - How to Make a 2D Game in Java #5
24:49