| Modifier and Type | Field and Description |
|---|---|
| private static float | angle
A rotating square! |
| private static boolean | finished
Exit the game |
| private static final int | FRAMERATE
Desired frame time |
| public static final String | GAME_TITLE
Game title |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| private static void | |
| public static void | |
| private static void | |
| private static void |
| angle | back to summary |
|---|---|
| private static float angle A rotating square! | |
| finished | back to summary |
|---|---|
| private static boolean finished Exit the game | |
| FRAMERATE | back to summary |
|---|---|
| private static final int FRAMERATE Desired frame time | |
| GAME_TITLE | back to summary |
|---|---|
| public static final String GAME_TITLE Game title | |
| Game | back to summary |
|---|---|
| private Game() No constructor needed - this class is static | |
| cleanup | back to summary |
|---|---|
| private static void cleanup() Do any game-specific cleanup | |
| init | back to summary |
|---|---|
| private static void init() throws Exception Initialise the game
| |
| logic | back to summary |
|---|---|
| private static void logic() Do all calculations, handle input, etc. | |
| main | back to summary |
|---|---|
| public static void main(String[] args) Application init
| |
| render | back to summary |
|---|---|
| private static void render() Render the current frame | |
| run | back to summary |
|---|---|
| private static void run() Runs the game (the "main loop") | |