๐Ÿ› ๏ธ Companion tool ยท Browser only ยท No install to start

Java Mod Studio
Build a game project in your browser

A little project maker for the Java series. Lay out a 2D game on a grid, tick the Java methods you want, read a broken compiler log and choose the fix, then download a real Swing Java project you can run with the free JDK on any computer.

Make your own art and sounds: draw sprites in Pixel Studio and make music or sound effects in Sound Studio, then bring them into your project.
Ember
Ember says: Java is free to write and run with the JDK, and a game is just a window that redraws itself again and again. This studio writes the whole Main.java for you, including the methods you tick. Your work saves automatically.

Lay out your scene

Pick an object below, then click squares on the grid to place it. Put the Player where you start and a Goal at the end. Click a square again, or use the eraser, to remove it.

Objects

Your scene so far

Each object becomes a shape your Java program draws on the window. The mini map below is a bird's eye view of where they sit in the game.

What is in the scene

    Add scripts

    A method is Java code your game calls every frame. Tick the ones you want and the Studio writes them. Start with Player move so you can move, and Coin collect so collecting does something.

    Your scripts

    Each ticked method is written into your project's Main.java.

    
          

    Name your project

    Live preview

    This is your Main.java file. Every object becomes a shape and every ticked method is added to the class.

    
            

    โœ… Ready check

    A Java project compiles cleanly if all of these are true. The Studio fills most of them in for you.

      How this maps to real Java

      Main.java is the whole program: a window, a timer and your methods.

      JFrame and JPanel make the window and the drawing surface.

      Timer runs actionPerformed many times a second, which is the game loop.

      paintComponent draws every object as a coloured rectangle.

      Run it: javac Main.java then java Main, or use the run script. Any free JDK works.

      The compiler log

      Click the red line, then choose the fix. Plain lines are normal.

      What is the fix?

      Download your project

      This bundles everything into a zip: Main.java, a run.bat and run.sh, and a README. Unzip it, then either double-click the run script or run javac Main.java and java Main.

        What is inside

        
              
        ๐Ÿ“‹
        Keep the cheat sheet open: classes, methods and the common Java compiler errors, all on one page. Open the Java cheat sheet โ†’  ยท  Back to all workshops โ†’