Free online courseHow to make a game Platformer 2D in Java
Duration of the online course: 17 hours and 52 minutes
New course
Learn to create a 2D platformer in Java with this free online course. Covering game loops, animations, levels, enemies, and more for a complete game development guide.
In this free course, learn about
Core Engine and Game Loop Foundations
Rendering, Animation, and Player Basics
Levels, Collision, and Physics
Game States, Menus, and Pause System
Scrolling, Backgrounds, and Enemies
Multiple Levels and Interactive Objects
Traps, Projectiles, and Death Handling
Audio System and Advanced Player Abilities
Bug Fixing, Level Tools, and Character Selection
Course Description
Embark on an exciting journey into the world of game development with this comprehensive, free online course. Designed for aspiring game developers and enthusiasts alike, this course delves deep into the intricacies of creating a 2D platformer game using Java. From understanding game loops to implementing various aspects of game mechanics, this course covers a broad range of topics.
Beginning with an overview of Java game development, participants will progress through interactive inputs and game loops that define the basic structure of a platformer. As you move forward, you'll learn how to integrate images and animations to create dynamic visuals for your game. The course also emphasizes crucial concepts such as collision detection and gravity, ensuring that your platformer offers a seamless and engaging experience.
Further into the course, you will learn about managing game states and designing intuitive menus, including pause and options screens, to enhance user interaction. Explore more advanced concepts like handling multiple levels, adding background movements, and integrating enemies for increased challenge and complexity.
Throughout the course, participants will gain insights into cleaning up code for optimum performance, working with various objects and traps, and employing sounds for an immersive gaming experience. The course also covers the addition of unique features like projectiles, death screens, and power attacks to enrich gameplay.
As you approach the final stages, consolidate your knowledge by learning to fix bugs and create your own custom levels. Extra modules offer guidance on character selection and the finer points of game aesthetics. Suitable for both beginners and those with some programming experience, this course is a definitive guide to mastering the fundamentals and advanced techniques of 2D platformer game development in Java.
Course content
Video class: A New Beginning - Episode #01 - Java Game Development Tutorial27m
Exercise: When setting up the Swing window for a Java 2D platformer, where should you call setVisible(true) to avoid a blank screen?
Video class: INPUTS - Episode #02 - Platformer Game Tutorial Java20m
Exercise: Which step ensures your GamePanel receives keyboard events after adding a KeyListener?
Video class: GAME LOOP - Episode #03 - Platformer Tutorial Java28m
Exercise: Which game loop approach gives consistent, controllable FPS in a Java Swing 2D platformer?
Video class: HOW TO MAKE A Game Loop in Java - Platformer GameDev 202200m
Exercise: What kind of game loop should you implement for a 2D Java platformer and why?
Video class: IMAGES - Episode #04 - Platformer Tutorial Java15m
Exercise: How do you correctly load a sprite atlas from the classpath and render a 64x40 subimage at double size in a Java 2D platformer panel?
Video class: ANIMATIONS - Episode #05 - Platformer Tutorial Java29m
Exercise: What does the animation speed variable control in the 2D platformer animation loop?
Video class: GAME LOOP 2.0 - Episode #06 - Platformer Tutorial Java14m
Exercise: Why separate UPS from FPS and use delta accumulators in a 2D platformer game loop?
Video class: PLAYER CLASS - Episode #07 - Platformer Tutorial Java27m
Exercise: What is the correct way to prevent the player from continuing to move when the game window loses focus?
Exercise: In a 2D Java platformer, the player continues moving upward after restarting if the restart occurs mid jump. What is the correct state reset to prevent this?
Video class: THE FINAL EPISODE - Platformer Tutorial Java12m
Exercise: Most efficient way to parse a level image into game data in a basic Java 2D platformer
Video class: How To BUILD YOUR OWN LEVEL - Platformer Tutorial EXTRA21m
Exercise: Which pixel component decides which terrain tile sprite is drawn in the PNG based level system?
Video class: How To Add CHARACTER SELECTION - Platformer Tutorial EXTRA1h12m
Exercise: What is the most maintainable way to support multiple characters with different animation rows and frame counts in a Java 2D platformer