Public Member Functions | |
| BuboloApplication (int windowWidth, int windowHeight) | |
| boolean | isReady () |
| void | create () |
| void | render () |
| void | dispose () |
| void | pause () |
| void | resize (int width, int height) |
| void | resume () |
Static Public Attributes | |
| static final int | TICKS_PER_SECOND = 30 |
| static final float | MILLIS_PER_TICK = 1000 / TICKS_PER_SECOND |
The Game: this is where the subsystems are initialized, as well as where the main game loop is.
Definition at line 12 of file BuboloApplication.java.
| bubolo.BuboloApplication.BuboloApplication | ( | int | windowWidth, |
| int | windowHeight | ||
| ) |
Constructs an instance of the game application. Only one instance should ever exist.
| windowWidth | the width of the window. |
| windowHeight | the height of the window. |
Definition at line 40 of file BuboloApplication.java.
| void bubolo.BuboloApplication.create | ( | ) |
Create anything that relies on graphics, sound, windowing, or input devices here.
Definition at line 57 of file BuboloApplication.java.
| void bubolo.BuboloApplication.dispose | ( | ) |
Called when the application is destroyed.
Definition at line 108 of file BuboloApplication.java.
| boolean bubolo.BuboloApplication.isReady | ( | ) |
Returns true if the game's subsystems have been set up, or false otherwise.
Implements bubolo.GameApplication.
Definition at line 47 of file BuboloApplication.java.
| void bubolo.BuboloApplication.pause | ( | ) |
Definition at line 113 of file BuboloApplication.java.
| void bubolo.BuboloApplication.render | ( | ) |
Called automatically by the rendering library.
Definition at line 75 of file BuboloApplication.java.
References bubolo.BuboloApplication.MILLIS_PER_TICK, and bubolo.graphics.Graphics.MILLIS_PER_TICK.
| void bubolo.BuboloApplication.resize | ( | int | width, |
| int | height | ||
| ) |
Definition at line 118 of file BuboloApplication.java.
| void bubolo.BuboloApplication.resume | ( | ) |
Definition at line 123 of file BuboloApplication.java.
|
static |
The number of milliseconds per game tick.
Definition at line 32 of file BuboloApplication.java.
Referenced by bubolo.BuboloApplication.render().
|
static |
The number of game ticks (calls to update) per second.
Definition at line 27 of file BuboloApplication.java.
1.8.6