
Learn to develop games in Java by building four classics—Pong, Space Invaders, Brickbreaker (Arkanoid), and Tetris—while incorporating artwork, mastering Java fundamentals, object-oriented programming, project structure, and Steam publishing.
Build Java and object oriented programming fundamentals with visual resources, practice hands-on with classic games, and create a complete original game with its own visuals, mechanics, and publishing journey.
Watch the evolution of the Mutant Carrot Gummy, a fast-paced action game built from basics to steam, exploring its mechanics and the journey from code to release.
Download Oracle JDK version 24 from the downloads link and install it on your OS. Then run the installer and install Eclipse.
Install the JDK, essential for Java, then download and install Eclipse for Java developers from the official Eclipse site, using a mirror if download issues arise.
Learn to activate Eclipse dark mode by navigating to window > preferences > general > appearance > theme, selecting dark, applying changes, and restarting to use Eclipse in dark mode.
Create your first Java project in Eclipse, then explore the project hierarchy of packages, classes, and methods, and learn camelCase naming for classes and methods, lowercase packages, and uppercase constants.
Explore the basic Java main method, including its signature public static void main(String[] args), and learn how all code passes through this standardized entry point to run a program.
Learn basic java syntax by printing to the console with println and print for debugging, and master line, block, and documentation comments, including author and version information.
Explore primitive types in Java, declare variables with int, byte, short, and long to store game data like a player's life, and examine the main method and blocks.
Explore primitive data types and variables in Java, including int, byte, short, char, string class, boolean, float, and double, with life 120 and name equals player one, using concatenation operator.
Learn data input and output in Java by using the scanner for keyboard input and console output. Read integers and strings with nextInt and nextLine, and declare variables.
Learn to input and display data in Java games by using concatenation, variables like player life and player name, and the scanner class to read keyboard input.
Explore how java converts between numeric types like int and double and text types, using typecasting and conversions to read and store values as strings and numbers.
Explore arithmetic operators in Java, including addition, subtraction, division, multiplication, and modulus. Learn to declare integers, update variables, and use plus plus for increments.
Master arithmetic operators and assignment operators in Java game development, including plus equals, times equals, and remainder equals, and explore the math class for power and square root calculations.
Explore relational operators in Java and their boolean results for game programming. Learn greater than, less than, equal to, and not equal, and the assignment distinction.
Explore logical operators including and, or, exclusive or, not, and relational operators for comparing values; learn truth tables and apply to game scenarios like needing sword and axe to win.
Learn Java conditional structures, including if else and switch, using relational and logical operators in a health-based example with main method and scanner input.
Explore compound conditional structures in Java by using if, else, and else if to branch logic based on current life values, manage braces, and print results with System.out.println.
this lecture explains the switch statement as a multi-case conditional in java, using case, break, and default with system.in input, mapping 2 to human and 3 to alien.
Explore repetition structures in Java with while, do-while, and for loops to repeat actions, like firing four cannon shots and counting with a variable until the condition is met.
Learn how arrays, as composite variables, store multiple values in Java. Explore declaring, indexing, looping through, and displaying array elements using for loops and the length property.
Explore how object oriented programming structures code into objects with attributes and methods, and apply inheritance, encapsulation, polymorphism, and abstraction to build maintainable, reusable Java game components.
Explore object oriented programming by treating game elements as objects, using classes as molds to instantiate objects with attributes, methods, and abstraction.
Explore access modifiers—public, private, and protected—and see how they control visibility of attributes like color and material and methods like cut and defend across packages.
Explore special methods in object oriented programming, including getters, setters, and constructors, and learn to use private attributes with access modifiers to mediate access and enhance code security.
Define the constructor concept in Java to set a sword's initial color and material, ensuring every new object starts with gray and wood, before using parameters to customize.
Explore the pillars of object-oriented programming—abstraction, encapsulation, and inheritance—through a Java project, demonstrating private and protected fields, getters and setters, and a subclass using extends.
Explore polymorphism in Java game dev by showing how the same method name behaves differently through overriding and overloading, with human and enemy classes and the attack method.
Create the game environment by building the game screen with a fixed 240x160 window, center it, and implement a 60fps game loop with tick and render.
Begin on main thread, initialize game class as core hub, set up a buffer strategy, and render a blue rectangle on a sized screen using frame pack.
Learn to create colors with RGB values in a Java game window using JFrame and canvas. Explore the take and render loop and buffer strategy to avoid flicker.
This lecture shows how to create a small square, center it on screen, and move it using x and y coordinates, with width-based boundary collision.
Learn to control object movement in a Java game by using a direction variable and dx to reverse direction at screen edges, preventing flicker and ensuring smooth 60 fps updates.
Use the keyboard to control the square by implementing the key listener interface and handling key pressed and key released events to move right and left with boolean flags.
Handle keyboard input and detections in Java game development, connect key presses to the game loop, and manage colors, shapes, and control variables like right and left.
Adjust rectangle dimensions and positions to center and align on screen, using width, height, x and y coordinates, scale, and live variable updates.
Organize your Java game by separating entities and tiles into packages, define entities with logic and rendering, and use static variables for shared game properties like width and scale.
Learn to set up the player and enemy, instantiate their classes, and render them in the game loop using the graphics parameter g, with public access and simple speed controls.
Add a ball as a new entity in the game, implementing tick and render methods to update and display it within the entities package, drawing a centered circle on screen.
Define dx and dy and a random angle between 45 and 120 degrees to drive ball movement, using cosine for x and sine for y velocity.
Explore implementing collisions in Java games by using a rectangle class for collision detection, accessing player and enemy attributes, and fine-tuning collision parameters for accurate bouncing.
Improve collision detection in a Java game by diagnosing intersection issues, adjusting angle calculations, and handling ball rebounds when colliding with the player or enemies using sign changes.
This lecture demonstrates detecting wall collisions for a ball, checking left and right screen bounds, and reversing direction using speed and dx, with consideration of position, speed, and scale.
Fix bugs in ball movement and wall collisions, enforce 45–120 degree angles, resolve zero-angle issues, and discuss constructor versus render logic with radians.
Set collision checks on the x axis with fixed 60 bounds to prevent the player from passing screen edges, adjusting origin to keep it centered.
Develops enemy movement by making the enemy follow the ball using the difference of x positions, with a slow-down multiplier to control pace and edge constraints to keep on screen.
Implement a boundary check so the ball returns to its initial position when it leaves the screen, enabling continuous play and prepping for future score tracking.
Implement a dynamic scoring system and UI display in a Java game by building a UI class, rendering player and enemy scores, and updating points in the ball logic.
Adjust the on screen score by inspecting the view class and using the player console to verify values from the player and enemy point scripts.
Learn how to fix inconsistent score increments in a pong-like game by using boundary checks, a playing state, and edge-aware height calculations to ensure points update correctly.
Increase the ball speed over time using a frame and counter system in the ball class; on max frame and counter limit, speed increments.
Increase ball speed gradually from six, then reset to six after a point. Reset velocity and zero frame and counter on restart, and tweak enemy pursuit percentage for smarter AI.
Add protective barriers along the left and right edges of the play area by drawing thin white rectangles, using a reset and color set to white, ensuring full-height coverage.
Improve game identity by reorganizing the UI and using a for loop to draw ten evenly spaced rectangles, calculating width as screen width divided by ten.
Refine the ball's collision with the wall by aligning collision parameters to the rectangle's exact position at five, and adjust thresholds to ensure a realistic trajectory and bounce.
Learn to fix ball-wall collisions and keep paddles in bounds while building a simple, prototype-based pong-style game; implement a request focus call in the main game loop for automatic input.
Limit each match by declaring a winner when either enemy points or player points reach ten and render the corresponding win message in the UI.
Adjust the end-of-match hud by repositioning text elements, centering wins with screen divisions, and applying a green player win and orange enemy win color scheme.
Explore how game states—menu, playing, paused, and game over—control core logic, user interface rendering, and victory feedback, with conditional checks and transitions that freeze or display outcomes.
Learn to implement game states in the user interface, manage the ball state, and handle game over while adjusting the loop for smoother play.
Add power-ups that fall toward the player to intercept and grant temporary abilities. Implement a power-up class with rendering and tick logic, and a player counter to spawn boosts.
Add a power-up object to the game screen, handle its activation and dropping, and refine the code by instantiating it in the game and exposing its activation state.
Reset the power up state after activation, set up a power up counter and threshold, and trigger reactivation after five hits, while ensuring visibility and cross-class access.
Explains a collision-based power-up that appears after five bounces with no goal, detects player contact via bounding boxes, and grants a speed boost for four seconds using a frame counter.
Explore implementing and debugging a player collision with a speed power up, including frame-based speed checks, value changes, and problem solving during game programming in Java.
Coordinate a collision sequence with object eight to trigger a power up, move the ball to position 60, and monitor cold frame while resetting the counter at two.
Trigger a multi-ball power up when the collision counter reaches five, using a random selector to activate a power up from a predefined set and render it in play.
generate random power-ups on player collision with the game run class and a switch for zero or one, and manage balls with a dynamic array list.
Ensure only one ball remains by removing off-screen balls from the list to optimize performance, and award points when the ball's position meets the scoring conditions tied to power ups.
debugs the second ball issue by checking list size and current position against height, preventing index out of bounds, and handling ball existence only after a power-up activation.
Solve a game dev problem focusing on the second ball, adjusting elimination rules, collider frame checks, and list-based deletion to keep the original ball in play and ensure boundary removal.
Analyze how the y position at the top and the object’s height determine when points are scored and how the object’s full extent interacts with the screen boundary.
Adjust birth of the ball by spawning the second ball at the player's y position minus 25, ensuring it appears near the player as a power-up for a dynamic experience.
Add a three-outcome power-up that temporarily enlarges the player's paddle width, using temp width and power width counters, with a 360-width threshold and a longer progress bar.
Replaces the old component with a new state-of-the-art one and strategically positions three to boost perceived power and performance, while precisely managing collision by disabling it for the USB component.
Fix power-up timing and width calculations by aligning EDF time with the designated width for accurate duration and speed. Add randomization and a size-reverting counter to enhance gameplay variety.
Style game visuals with Paint.NET and the Grid Maker plugin on a 16 by 16 grid with lighting effects, then compare Piskel and Aseprite for pixel art creation.
Master the basics of designing app sidebars in Paint.NET by precisely placing vertical elements, adjusting the alpha channel, and experimenting with colors to influence layout and mood.
Watch a timelapse of art creation as you set up a Java game project in Eclipse: create a res folder, configure build path, and organize spritesheet and src assets.
Use Paint.NET to set a 256 by 256 canvas and enable the grid. Then craft the paddle at 128 by 32 pixels to align with the main player's width.
Develop a graphics class to import images from the sprite sheet, read them as resources, and provide a subimage extraction method with error handling.
Import an image, extract a subimage from the sprite sheet as a sprite, and render it in the game with draw image using x, y, width, and height.
Import the player and enemy sprites, place the enemy at the top center, set the background to black, and prepare a sprite sheet with defined sizes for consistency.
Add left and right wall sprites using draw image and fill rectangle, manage sprite sheets and naming errors, and ensure the pong scene renders correctly.
Import and place the ball sprite from spritesheet, verify x and y positions and size 16x16, and render it using the event buffer image while updating the power up sprite.
Create a new color from color codes in Paint.NET, apply it to the hud text, adjust position x and y, and save to preview the updated ball shine and blink.
Adjust sidebars from ten to 32 to match the desired layout, and refine wall and ball collision logic, including middle-bar spacing and start positions, for proper bounce behavior.
Build a particle system to create effects when the ball collides and prevent passing through walls. Initialize direction and speed with dx, dy and Gaussian randomness, then render particles.
Implement a particle system by instantiating multiple rectangles with specific parameters, storing them in a list, and rendering their behavior on collisions with the player.
Refine a particle system by building a 16×16 grid, loading a sprite sheet, and assembling five images into a cohesive buffer.
Learn to create a particle system in Java game dev by using a frame counter to cycle five images every 30 frames, and reset indices for continuous animation.
Explore sprite creation and visual refinement by duplicating the player item. Adjust colors, such as green, and set enemy collision properties step by step in separate sections.
Import and organize particle sprites for a Java game by creating arrays for multiple orientations and setting positions (0, 16, 32, 48) to instantiate particles with a part type reference.
Render new particles by using a switch on part type to choose which side image to render (top, left, right, down), handle intersections with the player, and test sizes.
Test new particle effects by adjusting values for left and right sides, ensure correct orientation and image imports, and refine a vibrant pong-style visual for the game.
Cycle three images stored in an array of bufferedimage to animate sprites and create a glowing ball by updating the light frame and light index.
Explore collision detection and boundary checks to keep the ball inside sidebars, adjusting values like 36 and 40, and learn to add basic 2D game sounds using open game art.
Add life to your game with dynamic sounds by building a simple sound class in Java using AudioClip, able to play once or loop in a separate thread.
Create public static Sound fields by instantiating the sound class, set a WAV file path, and loop the background theme in a sounds package.
Add and manage sound effects in the project, using small wav files for collision and score events, and trigger level up, power up, and game over sounds.
Learn how to name packages professionally by mapping top-level domains to company type, define a main package, and create an entities subpackage for a Space Invaders project.
Create the game window using a canvas and JFrame, set its size and center it, then implement runnable with tick and render for game logic.
Develop a controllable game loop by running tick and render while is running, cap updates at 60 fps with sleep, and expose start, stop, and thread join controls.
Learn how to initialize a Java game window and render graphics using a buffer strategy and buffered images, including colors, image dimensions and scale, and placement at zero, zero.
Define an entity base class for in-game objects that interact, letting players and enemies share position, width, height, and image, and enabling a render method.
Explore how inheritance controls attribute visibility with public, private, and protected modifiers, then build a player class that extends an entity, reusing parent fields and overriding behavior.
Create a white rectangle on a deep black background and center a private player by configuring x, y, width, height, and scale.
Detect and process keyboard inputs in a Java game by implementing a key listener, tracking up and down booleans, and updating the player's y position with a speed value.
Create an enemy class that extends Entity, overrides tick render to customize behavior, and spawns from the right side at random vertical positions with a 32 by 16 size.
Create a spawner class that uses a list of enemies, tick-based timing, and rendering to spawn random enemies, manage frames, and remove off-screen objects.
Learn to position enemies with random y values using a Random instance, understand the spanner constructor, and delete enemies when their x position plus width is less than zero.
Add sprites and ships by importing prepared artwork from Inkscape, organizing assets in a rez folder, and configuring the build path to include the game resources as intended.
Import images dynamically by creating a graphics package and a sprite sheet class that reads image files from a path, handles errors with try-catch, and supports extracting subimages for sprites.
Import images dynamically in the entities class, preserve original image size for rendering, resize and rotate sprites for enemies and the player, and experiment with dimensions like 32 by 32.
Create a bullet class and render bullets in a Java game. Spawn bullets from the player’s position when the fire key is pressed using a bullets list.
Create a trail effect for spaceships using Turbo Player, importing assets and rendering a dynamic trail that follows the player via the tick update and a trails list.
Increase trail width, remove division by two to avoid spawning inside the player, add a trailing effect to enemies, and resize and draw the background image to the screen.
Develop accurate bullet-enemy collision detection by iterating the enemy list, modeling objects with rectangles, and returning a boolean from intersection checks.
Correct the bullet naming to ensure proper collision with enemies, then demonstrate how collisions let you eliminate and destroy foes.
Implement collision handling between bullets and enemy ships, deduct life, and remove bullets to prevent repeated collisions, with real-time list updates.
Change the bullet sprite by editing the image name and size, update the bullet class and player class to render a blue bullet with adjusted dimensions and speed.
Explore randomness in enemy ships by loading and sizing ship sprites, dynamically fetching images, and debugging sprite coordinates to prevent raster height errors.
Master the parallax effect by implementing a scrolling background with two layers, using backX to create dynamic movement and applying typecasting to fine-tune motion and alignment.
Define a dynamic enemy spawn timing with a random frame interval from 40 to 120 frames, resetting x to 0 when the screen width is reached.
Learn how to add a dynamic muzzle flash explosion each time the player fires, by creating a FireExplosion entity, wiring tick and render methods, and configuring explosion visuals and sounds.
Create a circular explosion by spawning multiple particles when an enemy is destroyed, using gaussian-based dx and dy and a shared game.parts list for updates and rendering.
Enhance the explosion effect by increasing particle count and size, implementing alpha-based transparency with frame tracking, and adjusting colors while keeping rendering changes isolated.
Repurpose a brick breaker clone by duplicating a project, pruning unnecessary components, and adapting core elements like the player, power-ups, and collision logic to create a clean, reusable game base.
Move the ball-enemy collision logic into the enemy class, handling removal from the particle collection and exposing public dx, dy, and angle to update the ball trajectory.
Create and manage a list of enemies, implement a spawner in main to add new enemies, handle collisions and removals, and ensure enemies appear and follow the player.
Learn to implement tetrominoes in a new project by modeling tetrominoes as block ensembles, supporting rotation and movement, using lists, inheritance, and polymorphism to optimize game development.
Start a new Java project, define the package and main class with public static void main, and configure a JFrame window with size and center on screen.
Want to learn Java while discovering how 2D games really work from the inside?
In this course, you'll learn game development with Java by building real games, starting with the fundamentals and gradually progressing to more complex systems.
Instead of just using a ready-made engine and hiding what happens behind it, you'll understand and implement the key concepts that make a game work: game loop, player input, movement, collisions, animation, physics, rendering, audio, code organization, and much more.
Throughout the course, you'll put this knowledge into practice by creating classic games and your own projects, including Pong, Space Invaders, Breakout, and Tetris.
The idea isn't just to copy games step-by-step. Each project serves to show how to think about and program the mechanics behind a game.
What will you learn?
- Java Fundamentals Applied to Game Development
- Object-Oriented Programming in Practice
- How a Game Loop Works
- How to Draw Graphics and Objects on the Screen
- Movement and Player Interaction
- Collision Detection
- Animations
- Physics and Object Behavior
- Sound and Effects
- Code Organization and Architecture
- How to Transform Fundamentals into Complete Games
And there's a special part: you'll also follow the development of "The Plantation Protector," an original project developed within the course.
Here you'll see concepts moving beyond small examples and being used in the construction of a larger project—including programming decisions, mechanics implementation, polishing, and game evolution.
This course is for those who want more than just learning Java syntax.
It's for those who want to use Java to create games and, above all, understand what's happening behind the scenes.
You don't need to start knowing game development. We'll build the concepts progressively, applying what we learn in practical projects.
In the end, you will have created several games and, more importantly, you will have a much greater understanding of the fundamental systems used in 2D game programming.
ABOUT COURSE UPDATES
The course continues to evolve. The module dedicated to the development of "The Plantation Protector" is being progressively expanded, keeping pace with the project's progress.
By enrolling, you will have access to the content already available and will receive future course updates at no additional cost.