Created
November 20, 2021 20:00
-
-
Save PanJohnny/eecf2607ba28cd7c0e2f26b5b7b84cd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExampleProject implements RenderHook, GameComponent { | |
public void render(Graphics2D g) { | |
g.setColor(Color.RED); | |
g.fillRect(0, 0, 100, 100); | |
} | |
public static void main(String[] args) { | |
Game game = new Game("Example game", new GameOptions()); | |
game.add(new ExampleProject()); | |
game.start(); | |
game.window.setVisible(true); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment