Dumb-ways-to-memorize
2D game
|
Go to the source code of this file.
Macros | |
#define | SCREEN_RES_X 1280 |
#define | SCREEN_RES_Y 720 |
#define | JSON_FILE "GameData.json" |
#define | ENTITY_FILE "Entities.json" |
#define | SPLASH_SCREEN "SplashScreen" |
#define | LEVELS_NOT_DEFAULT "LevelsPerGame" |
#define | LIVES_DEFAULT 3 |
#define | LEVELS_DEFAULT 6 |
Functions | |
int | Setup () |
int | Run () |
void | Shutdown () |
Variables | |
int | mState |
#define JSON_FILE "GameData.json" |
Definition at line 7 of file game.h.
Referenced by LoadGameData().
#define LEVELS_DEFAULT 6 |
Definition at line 12 of file game.h.
Referenced by LoadLevelData().
#define LEVELS_NOT_DEFAULT "LevelsPerGame" |
Definition at line 10 of file game.h.
Referenced by LoadLevelData().
int Run | ( | ) |
Runs the main game loop.
Definition at line 666 of file game.c.
References Draw(), exitRequest, FRAME_DELAY, gCurrentTime, gDelay, Poll(), and Update().
Referenced by main().
int Setup | ( | ) |
Loads files and images for game.
Definition at line 592 of file game.c.
References gController, InitAISystem(), InitEntitySystem(), InitGraphics(), InitMenuSystem(), LoadEntityData(), LoadGameData(), LoadLevelData(), LoadMenuData(), LoadPowerUpData(), and SelectLevels().
Referenced by main().
void Shutdown | ( | ) |