Тёмный

A New Beginning - Episode #01 - Java Game Development Tutorial 

Kaarin Gaming
Подписаться 10 тыс.
Просмотров 267 тыс.
50% 1

Hey everyone!
Here is the first episode of a platformer tutorial.
We will learn how to make a game in java and some things we will cover are:
- GameWindow
- Gameloop
- Inputs
- Animations
- Line of Sight
- Enemies
- Collisions
- Event handling
- Rendering
and much more.
Don't forget to subscribe and like the video. If there is anything that's unclear, post a comment or join us on discord and ask it there. If you like to support me you can find the link to that further down this description. Hope you enjoy this episode and good luck!
Timestamps
00:00 Intro
00:41 What is a Platformer game?
01:01 Who is this for?
01:55 What will you need?
03:57 Why Java?
04:31 What will we learn?
04:57 Where can i find the code and assets?
05:16 Will it cost anything?
05:30 Our first project
06:46 What will will do today
08:03 First Class
09:58 Game Class
12:03 Window Class, JFrame
16:34 Making sure we avoid a bug
17:05 GamePanel class, JPanel
18:49 paintComponent and Graphics explained
20:21 super.paintComponent(g) explained
22:21 Our first drawing
23:37 Putting the panel inside the frame
25:16 Its Working!
25:56 To Summarize
26:27 Outro with links
** LINKS **
Support me at - www.buymeacoffee.com/kaaringa...
Website - www.kaaringaming.com/
gitHub - github.com/KaarinGaming
Discord - / discord
Twitter - / kaaringaming
Install Eclipse and JDK timestamp - • Java Game Development ...
Eclipse -www.eclipse.org/downloads/
JDK - www.oracle.com/java/technolog...
KhanAcademy - www.khanacademy.org/computing...
#java #gamedev #platformer

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

 

22 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 299   
@KaarinGaming
@KaarinGaming 2 года назад
Hey! Took some time to get it all recorded and such. Trying to improve the quality and all that jazz. I hope you enjoy it, this tutorial will be epic :D Don't forget that there is a discord for this channel. Go check it out. Links in the description. Cheers!
@drazzo777cod7
@drazzo777cod7 Год назад
Sir i have only one question before i start the course that will I be able to run it on mobile and publish it on play store for my friends to download?????
@md.abidullahmuhib
@md.abidullahmuhib Год назад
Hey, there! May I have the images used for this tutorial?
@DreadArsenol
@DreadArsenol 2 года назад
Finally someone who explained the difference between a JFrame and a JPannel
@dileriano7529
@dileriano7529 5 месяцев назад
Bro i've been wandering around all the time just seeking to know the difference between both.
@joshcrick
@joshcrick Год назад
I've just found your channel and watched through this first episode, very helpful tutorial, thank you brother, I'm looking forward to going through the rest of this series!
@dileriano7529
@dileriano7529 5 месяцев назад
Thank you so much... I was desperately looking for someone to explain everything they type for me. you are a rare gem because you put a lot of time and effort to explain the simplest things which we really need to understand.
@manassatish6229
@manassatish6229 4 месяца назад
Really appreciate the amount of effort put into these tutorials with comprehensive explanations. Earned a sub mate :)
@marcosviniciusoliveirasant9491
@marcosviniciusoliveirasant9491 2 года назад
I'm a Brazilian Java programmer (sorry for the bad english), I was looking for a content like this, it's really fun to watch your videos, like we say in Brazil, você é incrível (you are awesome)!
@KaarinGaming
@KaarinGaming 2 года назад
As we say in Sweden, Tack så mycket! 😄 (Thank you)
@alien3200
@alien3200 6 месяцев назад
Huuhh.... Your English is correct only
@iogilarb
@iogilarb 4 месяца назад
Brazilian must use Lua, go ahead and use your Lua, or maybe you're not a real Brazilian, because Brazilians are proud of what they have, and it's Lua.
@ElSopo
@ElSopo 2 месяца назад
@@iogilarbWhat abou Elixir?
@haiderkhaminwala9497
@haiderkhaminwala9497 Год назад
Great content ,very helpful.....i was looking for something thing like this.....this is my first video of your channel and i am impressed... keep it up,THANK YOU!!
@Parawars27
@Parawars27 Год назад
It looks amazing, liked, subscribed, and commented. I wish you all the best !
@SSgamer69
@SSgamer69 10 месяцев назад
This is so easy to follow and I love that you explain each step with details.
@KaarinGaming
@KaarinGaming 10 месяцев назад
Cheers mate! :D
@davidszekely4604
@davidszekely4604 2 года назад
Thank you very much! I really appreciate that there are good 2022 Java game developement videos on RU-vid, thanks to you.
@KaarinGaming
@KaarinGaming 2 года назад
Cheers! Glad you like it! :D
@nayeoncs
@nayeoncs 10 месяцев назад
Absolutely amazing content. Keep doing the great job!
@terciofelipeoliveirafrance2228
@terciofelipeoliveirafrance2228 4 месяца назад
Wow quite amazing, really clear, you finally pointed the difference between windown and panel.
@IIEPEDO3
@IIEPEDO3 Год назад
Cool tutorial, mate. Thanks for your work!
@Eleciscool
@Eleciscool 8 дней назад
This tutorial is perfect and so helpful! I learned java for Minecraft plugins so it's cool to use it for a game!
@DoraTheExplorerrr
@DoraTheExplorerrr 11 месяцев назад
you are amazing! i searched a good 2d java game tutorial for days and i couldnt find any good tutorials until i found this one! thank you so much for this awesome tutorial!
@KaarinGaming
@KaarinGaming 11 месяцев назад
Glad you liked it!
@marcelogamer1277
@marcelogamer1277 5 дней назад
Bro! Thanks for the explanations! Hi from Brazil :)
@evieraines1333
@evieraines1333 Год назад
Hats off to you; you've explained most of this better than any of my college professors. Thanks for the refresher! This was so helpful!
@KaarinGaming
@KaarinGaming Год назад
Thanks :D
@tobeder
@tobeder Год назад
I'm just starting with this tutorial, I like it. I think I can advance in each episode. The duration of the episode is good and really have the sensation of an achievement and understanding of the concepts. Thank you!
@KaarinGaming
@KaarinGaming Год назад
Thanks, and good luck =)
@rejectionistmanifesto8836
@rejectionistmanifesto8836 3 месяца назад
​@@KaarinGamingthanks for this, btw ​did you create the follow up tutorial you said you will in this video?
@arthur-monteath
@arthur-monteath Год назад
Your tutorials are so great! Congratulations
@UnderArea51
@UnderArea51 2 года назад
New follower here! Thank you for making a Java tutorial - from scratch!!! Look forward learning Java! I have basic knowledge of Java from following some previous RU-vid tutorials. I really enjoy Java, as I've tried tons of other languages; true Java might have a few extra lines- however their are so many short cuts - hot keys that save time I discovered - so it all balances out! And it's really easy to debug errors!!!
@KaarinGaming
@KaarinGaming 2 года назад
Thanks. I hope you find it useful :D
@tradermann
@tradermann Год назад
Just wanted to say a big 'THANK YOU' for this seris; you are doing an amazing job
@KaarinGaming
@KaarinGaming Год назад
Thank you! :D
@swayam50
@swayam50 Год назад
Absolutely loved this episode
@jayyyyyyy5624
@jayyyyyyy5624 Год назад
@KaarinGaming I’m definitely going to use this for my resume ! ( going to put my own spin on it of course ) . Great content !
@randomzbiaego3450
@randomzbiaego3450 2 года назад
I just love u man
@critsology
@critsology 2 года назад
This is perfect for me to learn some extra coding in my free time, thanks !
@msDaia7
@msDaia7 2 года назад
I'm new to java programming and your content is wonderful, thank you very much!
@KaarinGaming
@KaarinGaming 2 года назад
Glad you like it :)
@gabrielkripalani1681
@gabrielkripalani1681 7 месяцев назад
This is awesome! You earned a sub!
@Nawkz
@Nawkz Год назад
Despite being Brazilian and not understanding English perfectly, I wanted to thank you for creating content like this and inspiring many people to enter this great world. I'm starting a game now and I'll try to understand your videos because I'm sure they will help me a lot.😀💜
@KaarinGaming
@KaarinGaming Год назад
That's great! I hope the game goes well. :D
@augustaseptemberova5664
@augustaseptemberova5664 Год назад
fantastic tutorial. thank you so much!
@idiboss6782
@idiboss6782 2 месяца назад
Thank you, I'm here because our teacher didn't teach us shit. This helps so much for me to actually understand how java works.
@KaarinGaming
@KaarinGaming 2 месяца назад
Cheers mate! :D
@creationan4972
@creationan4972 7 месяцев назад
Damn bro he explained every detail needed so we can understand and comprehend how exactly we can create a game , most channels expect us as a viewer to know these stuff .
@KaarinGaming
@KaarinGaming 7 месяцев назад
Thanks mate! :D
@thomaspham2752
@thomaspham2752 2 года назад
Thanks a lot for your wonderful tutorial video!
@flashpunk7333
@flashpunk7333 8 месяцев назад
I started learning java and I think gamedev is a good way to learn it because its also fun and your tutorials are very fun too. You really explain everything in a breif but informative way and I like that you thought about the viewers perspective of the video too. I mean when you added that 'Graphics G' object I was like wait, what the hell is that and then you did the rewind thing and explained the whole thing like you read my mind! Keep up the good work man!
@KaarinGaming
@KaarinGaming 8 месяцев назад
Cheers mate! Glad you like it :D
@natsu-kiy2206
@natsu-kiy2206 9 месяцев назад
Bruh why your channel is underrated? You are so good the way you explain is very clear. I can understand everything. Thank you so much sir
@KaarinGaming
@KaarinGaming 9 месяцев назад
Thank you :D
@random2307
@random2307 Месяц назад
The very moment you said, I'm the type of person that likes to understand what's going on behind the scenes I instantly subscribed. I absolutely love Java, thank you sir, now it's time to sit back and enjoy your channel.
@KaarinGaming
@KaarinGaming Месяц назад
Cheers man! :D
@samerali270
@samerali270 Год назад
incredible tutorial! Very easy to follow and most definitely suited for beginners.
@KaarinGaming
@KaarinGaming Год назад
Thanks! :)
@lowelindholm2710
@lowelindholm2710 Год назад
Du förklarar väldigt bra, extremt tydligt strukturerat. Tack för detta!
@KaarinGaming
@KaarinGaming Год назад
Tack själv :)
@rorozoro513
@rorozoro513 2 месяца назад
Started out with the series today, the first video was really informative and filled with great content. Looking forward to completing it, thanks for the content
@KaarinGaming
@KaarinGaming 2 месяца назад
Best of luck!
@rorozoro513
@rorozoro513 2 месяца назад
@@KaarinGaming Thankyou♥
@marianas.5483
@marianas.5483 7 месяцев назад
Really great lesson! Thank you so much for explaining everything in detail. It was so helpful
@KaarinGaming
@KaarinGaming 7 месяцев назад
Thanks! :D Glad you like it!
@nivedmorts
@nivedmorts Год назад
Thanks for explaining the concepts along the way. This tutorial beats others where it's just the youtuber typing or copy and pasting code.
@KaarinGaming
@KaarinGaming Год назад
Cheers!
@NikitaBomba112
@NikitaBomba112 Год назад
Thanks you for this video!
@DavidNwokoye
@DavidNwokoye 2 года назад
I found your channel 2 days ago. You got amazing content and I hope you blow up man. 🙌🙌🙌
@KaarinGaming
@KaarinGaming 2 года назад
Thanks man ! :D
@NoOne-jl2ii
@NoOne-jl2ii Год назад
Great tutorial, loved it!
@annguyentruong1050
@annguyentruong1050 2 месяца назад
Thank you so much. i'm interested in your video. It's very intelligibility. I hope to see more your video
@kassimiro947
@kassimiro947 14 дней назад
Incredible tutorial. I was reading Java Swing documentation over the last week and was making a game (solely for practice) with only JPanels, JButtons, JDialogues etc etc but I felt the LayoutManagers were too restrictive and not great options for switching between views in a game (although great for other type of apps) The whole time I kept thinking I was missing something and hadn't realized paintComponent was called automatically and I can essentially draw my entire game with it. This is incredible thank you! Back to the drawing board for me haha
@KaarinGaming
@KaarinGaming 14 дней назад
@@kassimiro947 Glad you liked it! Best of luck :D
@justinianpintilie5999
@justinianpintilie5999 Год назад
Thank you very much! That's very useful!
@RagnarLodbrokV
@RagnarLodbrokV 2 месяца назад
Look at those Java classes, such clean methods! everything so well moduled. Mua! chef's kiss
@KaarinGaming
@KaarinGaming 2 месяца назад
Right back at ya!
@abirkolin4702
@abirkolin4702 Год назад
started just now! hoping to learn so many things!
@ikninja1hd
@ikninja1hd 2 года назад
Thank you so much for this! Subscribed, bell on.
@KaarinGaming
@KaarinGaming 2 года назад
Hope you like it! :D
@williamkmanire
@williamkmanire Год назад
Well done tutorial. I like how you purposely sequence things to show common problems when you forget a step, such as adding the JPanel to the JFrame.
@KaarinGaming
@KaarinGaming Год назад
Thanks. That was one of the rules I had for this =)
@noaht5168
@noaht5168 2 года назад
thanks so much for explaining everything, a lot of tutorials blaze through it and leave me confused 😂
@aladin7339
@aladin7339 2 года назад
I really love ur content ,It helped me a lot ,u should have more followers.
@KaarinGaming
@KaarinGaming 2 года назад
Thanks man! That would be lovely. :D
@IsHardynafthardynaft
@IsHardynafthardynaft 2 года назад
@@KaarinGaming u can read about "content marketing". That will bring you a lot of good subscribers, dude.
@KaarinGaming
@KaarinGaming 2 года назад
I will take a look at it. Thanks
@The-Gamist
@The-Gamist Год назад
Amazing tutorial!
@waynebyrne2201
@waynebyrne2201 11 месяцев назад
This is brlliant. being a technical trainer myself I use the methods (excuse the pun) that you do....clarity is the key...I salute you Sir :)
@KaarinGaming
@KaarinGaming 11 месяцев назад
Cheers man! :D
@youraverageguy8431
@youraverageguy8431 Год назад
It still baffles me to this day how shit like this is free. This is soooo good. The video just reignited my passion for coding
@KaarinGaming
@KaarinGaming Год назад
Glad to hear it :D Good luck!
@ftkronborg
@ftkronborg 10 месяцев назад
You're better than my professors lol. Thank you man.
@nikil111
@nikil111 Год назад
I hope you continue this series because I am on college where we study Java.
@artiste9357
@artiste9357 6 месяцев назад
Thanks!
@patrickmazzarol7171
@patrickmazzarol7171 2 года назад
love your video Kaarin!
@KaarinGaming
@KaarinGaming 2 года назад
And I you!
@gabo7993
@gabo7993 Год назад
This is so cool!
@razvedchik2021
@razvedchik2021 Год назад
This channel is worthy of more than a million subscribers!!!!!
@KaarinGaming
@KaarinGaming Год назад
Thanks!
@hydrophile1894
@hydrophile1894 6 месяцев назад
Thanks bro for this tutorial.
@amnesiac-original
@amnesiac-original Год назад
Good job! 😀
@joysaha3927
@joysaha3927 Год назад
Just found your channel!! and It's really good tho!! 👍👍
@KaarinGaming
@KaarinGaming Год назад
Thanks! :D
@TingTingTingTang
@TingTingTingTang 10 месяцев назад
thanks bro, it helps a lot
@user-ib8mu1vt5x
@user-ib8mu1vt5x 7 месяцев назад
cool video)
@SirBitingBen
@SirBitingBen 6 месяцев назад
his is awesome, thank you so much. I've been watching alot of Java basics and stuff, but i'm having a hard time really understanding, because while I can understand what variables and thigs are, I have no idea how to apply them or make them useable.
@AndreiOne95
@AndreiOne95 2 года назад
you are the best!
@KaarinGaming
@KaarinGaming 2 года назад
Thanks
@raevod6361
@raevod6361 2 года назад
Most underrated channel ever
@KaarinGaming
@KaarinGaming 2 года назад
@nathanmandala8465
@nathanmandala8465 11 месяцев назад
I love how you say Kaan Academy
@ymeyoussef1583
@ymeyoussef1583 2 года назад
bro i wish i can give you a 10k view + like you really deserve it
@redramie6151
@redramie6151 Год назад
Brooo why your channel is so underrated
@bloopersnoopyflople
@bloopersnoopyflople Месяц назад
U are the 🐐
@pfever
@pfever Год назад
Thank you for the tutorial, just some small corrections as they might confuse some people. 10:31 a constructor is a special method, not a special class. 18:07 not a global variable, but an instance variable or also called field.
@malmossa
@malmossa 2 года назад
Thank you
@princearthur5532
@princearthur5532 10 месяцев назад
You've awesome 😂
@atlaslartey4027
@atlaslartey4027 Год назад
Hi thanks for posting this tutorial! I think I might be missing somthing though because I managed to get the j frame window to display but then I folowed the rest of the tutorial but the rectangle won't display. I'm learning to make games in java and you've been rly helpful thanks!
@edwarddunne6338
@edwarddunne6338 Год назад
I had the same issue. For me, it was in the GamePanel file. When defining the method for painting components, it's paintComponent, not PaintComponent
@santiraigoza5937
@santiraigoza5937 4 месяца назад
I've liked and subbed! My goal is 1 at least vid a day wish me luck!! loved this first vid so far
@KaarinGaming
@KaarinGaming 4 месяца назад
Good luck! :D
@santiraigoza5937
@santiraigoza5937 4 месяца назад
bouta do vid 2!!
@haikamu6963
@haikamu6963 2 года назад
I want developing in java because your fun and interesting videos
@KaarinGaming
@KaarinGaming 2 года назад
Cheers mate :D
@artemivanov4711
@artemivanov4711 2 года назад
I really don't know how you can have only 2k followers with such good explanation skills. I have a bachelor degree in CS but have no experience in gamedev. That's why I am trying to practice Java programming skills doing gamedev and from what I was able to find so far on RU-vid you are the best! Maybe, ThinMatrix is around you in explanation but he's concentrating on the 3D games that's why he's not the best choice for beginners in gamedev (especially, because of VAOs and VBOs... rendering is pain with those...). Therefore, I am gonna recommend you to all of my friends !!!
@KaarinGaming
@KaarinGaming 2 года назад
Wow, that's some kind words mate. Yes, Thinmatrix is a great one. Learned a few things from him when working with openGL. I hope you got many friends
@Pilpiscas
@Pilpiscas 2 года назад
Man I'm new to java and think this might just be the place for mw
@MrLoser-ks2xn
@MrLoser-ks2xn Год назад
Thanks
@felipegomes2263
@felipegomes2263 2 года назад
Thank God you're using Eclipse, I find it so much more intuitive to work with.
@kshitiz6376
@kshitiz6376 4 месяца назад
Part 1 completed. ✅ Things we learnt: 1)Perks of object oriented programming. 2) How we can create a GUI in Java (need to learn about JFrame and JPanel classes in java.swing , which in itself is a part of Java Foundation classes library). On to the next one.
@user-fq5yz5wf1b
@user-fq5yz5wf1b 2 года назад
Hey,do u know y i cant see the options of the jframe, jpanel,swing etc?.. only thier options. ty
@salina1309
@salina1309 Год назад
can I use android studio instead of eclipse and I really loved the video first time watching your content -new subscriber
@veerjain819
@veerjain819 10 месяцев назад
Hey ! Can you explain when the paintcomponent method was called ? I didn't get that part
@heavycavalry9919
@heavycavalry9919 2 года назад
Hello! Your videos are super clear and really this helps a lot of beginners to learn Java in a fun way. I also have a question regarding your video, how do you set eclipse to "hyperlink" some of the methods while you type? For example when you set the .EXIT_ON_CLOSE" on minute 15:57?
@KaarinGaming
@KaarinGaming 2 года назад
Hey! Im glad you like it. Ctrl click is how I do it :D
@heavycavalry9919
@heavycavalry9919 2 года назад
@@KaarinGaming thanks a lot , didn't think you would reply so quickly. You are the best
@noahgsolomon
@noahgsolomon 2 года назад
YOURE THE COOLEST PERSON EVER OMGGG
@KaarinGaming
@KaarinGaming 2 года назад
Thank you good sir!
@regisbekale2333
@regisbekale2333 Год назад
Can someone tell me which software is used in 2:06, please? Thank you.
@mrooglyboogie4118
@mrooglyboogie4118 Год назад
Hello, I am about to start this series and code along. Do you recommend using Eclipse IDE for this, or IntelliJ Community Edition? I am familiar with the latter since I've started working with this tool recently. Thanks!
@KaarinGaming
@KaarinGaming Год назад
You can use either :) Best of luck!
@dl-cb7yc
@dl-cb7yc Год назад
before beginning to watch I like to know if have you used any kind of AI like rule-based, behavior trees, or probabilistic AI in decision-making process and thank you for the tutorials
@KaarinGaming
@KaarinGaming Год назад
I have 0 clue. We got some very basic ai behavior in the end, but nothing complicated due to this is a tutorial for beginners. Take a look on github for last videos code and you will have your answers.
@martindoverholm1819
@martindoverholm1819 10 месяцев назад
Du ska ha en fet fakking tumme upp mannen, det här är GULD!
@KaarinGaming
@KaarinGaming 10 месяцев назад
Tack :D
@rashidasabuwala308
@rashidasabuwala308 2 года назад
Hey sorry but i used the 22 version so it gave me alot of bracket errors i asked my dad abt the errors and he helped me but can u make one on 2022 evlipse now
@mounikamannuru8665
@mounikamannuru8665 6 месяцев назад
in one of the lines of code I can't set the visiblity on the game window why is that.
@TechBoxNorth
@TechBoxNorth Год назад
I decided to use IntelliJ IDEA as my IDE and when I create a new project there are 3 build tools to choose from: IntelliJ, Maven and Gradle. Wich one should I choose and why? Did some gooling and chose Gradle but not sure if that was the best choice.
@KaarinGaming
@KaarinGaming Год назад
I am not sure. But since this is a simple project in terms of no extra libraries, tools or engines, I would use IntelliJ if its the normal one.
@TechBoxNorth
@TechBoxNorth Год назад
@@KaarinGaming Thanks, can't wait to start making stuff move and jump around :)
@user-pm3cv9yn5t
@user-pm3cv9yn5t Год назад
Can you mention any tutorial/article that will help me create this same game in JavaFX? or how to convert your Swing code into JavaFX? I don't know swing actually.
@chamikahirushan2845
@chamikahirushan2845 5 месяцев назад
Thank you for making these tutorials.Can't Find resources of the game in github or your website.please help
@KaarinGaming
@KaarinGaming 5 месяцев назад
Cheers. Code can be found on github and my website.
@burgerrrrd
@burgerrrrd Год назад
Blud im stucked in jframe how do you create it mine shows error
@cristhianjesus8978
@cristhianjesus8978 7 месяцев назад
Hello! Great tutorial. Quick java question: Why don't we have to call the paintComponent method at the window/game classes? I don't get how the program understands that It should paint the Panel with the rectangle. I love the way you explain and the pace of the course. Congratulations!
@KaarinGaming
@KaarinGaming 7 месяцев назад
Hello! I think I cover the paintcomponent in the tutorial. By extending jpanel, and using it, we are calling paintcomponent. It got some "back stage" work we dont see, and part of that, is calling paintcomponent. Or by calling repaint();
@cristhianjesus8978
@cristhianjesus8978 7 месяцев назад
​@@KaarinGaming Hi! Thank you for the answer. You did cover, but this backstage part wasn't clear to me. Now it's clear! Thank you very much!
Далее
INPUTS - Episode #02 - Platformer Game Tutorial Java
20:04
I Spent 100 HOURS Making a Game With NO GAME ENGINE
13:42
The Best Games Made with libGDX [2021]
13:56
Просмотров 77 тыс.
If You Can't Make Games After This Video, Give Up
4:37
Java tic tac toe game ⭕
30:00
Просмотров 283 тыс.
Dear Game Developers, Stop Messing This Up!
22:19
Просмотров 695 тыс.
1 Year of Learning Game Development In 6 Minutes
6:01