Creates an Game object Creates an Game object which inherits State.
More...
#include <game.h>
Creates an Game object Creates an Game object which inherits State.
Definition at line 17 of file game.h.
Constructs a Game object
- Parameters
-
A destructor for the Game object
void Game::displayScore |
( |
| ) |
|
|
private |
Draws the score to the screen
void Game::drawSprites |
( |
| ) |
|
|
virtual |
A function for displaying the Sprite objects which do not use alpha.
Implements State.
void Game::drawSpritesWithAlpha |
( |
| ) |
|
|
virtual |
A function for displaying the Sprite objects which do use alpha.
Implements State.
void Game::generatePlatforms |
( |
float |
| ) |
|
|
private |
Generates the new platforms Generates a new row of random platforms
- Parameters
-
void Game::update |
( |
float |
, |
|
|
float |
, |
|
|
float |
|
|
) |
| |
|
virtual |
A function for updating the Game object
- Parameters
-
float | the delta time |
float | the x touch location |
float | the y touch location |
Implements State.
std::vector<Entity *> Game::background |
|
private |
std::vector<Entity *> Game::dangerPlatforms |
|
private |
The gravity
Definition at line 44 of file game.h.
boolean for if a button is pressed
Definition at line 46 of file game.h.
std::vector<Entity *> Game::safePlatforms |
|
private |
The players score
Definition at line 41 of file game.h.
The documentation for this class was generated from the following file: