Game Loop and Key Input – How to Create a 2D Game in Java #2

Game Loop and Key Input – How to Create a 2D Game in Java #2

HomeRyiSnowGame Loop and Key Input – How to Create a 2D Game in Java #2
Game Loop and Key Input – How to Create a 2D Game in Java #2
ChannelPublish DateThumbnail & View CountDownload Video
Channel AvatarPublish Date not found Thumbnail
0 Views
(December 4, 2022)
Russian subtitles have been added. Thanks for the help!
Translation of the video title into French by @Akariinnn

Warning: This is a tutorial intended for beginners in Java 2D. The pace is therefore slow!

In this video I will explain in detail how to build a game loop.

What we do in this video:
1. Draw an object on the screen with Graphics2D
2. Get keyboard input
3. Build a game loop /"sleep/"
4. Build a /"delta/" game loop
5. Show FPS and check if our game loop is working.

You might think it's a bit complicated and building a game loop is the first big hurdle in 2D game development, so I hope this video helps you get through it so we can move on to more things. fun.

If you have any questions, please feel free to leave a comment.

Guidelines for using Blue Boy Adventure code and assets:
https://docs.google.com/document/d/1qcafOofpXYd_QPr95qbgfb1GYxXKgSZb/

Timestamp:
0:00 Game loop overview
5:30 p.m. Draw an object on the screen
8:19 Getting keyboard input
5:50 p.m. About system time
9:08 p.m. Build the first game loop (sleep)
28:04 Building the second game loop (delta)
31:21 FPS display

#java #javagamedevelopment #java2d

Please take the opportunity to connect and share this video with your friends and family if you find it useful.