Dumb-ways-to-memorize
2D game
|
#include "entity.h"
Go to the source code of this file.
Macros | |
#define | PLAYER_NAME "Player1" |
#define | PLAYER_LIVES 3 |
#define | PLAYER_BASE_JUMP -5 |
#define | PLAYER_BASE_SPEED 5 |
Functions | |
void | InitPlayer () |
void | DecrementPlayerLives () |
Variables | |
entity_t * | gPlayer |
char * | gPlayerName |
#define PLAYER_BASE_JUMP -5 |
Definition at line 7 of file player.h.
Referenced by DoPlayerThink().
#define PLAYER_BASE_SPEED 5 |
Definition at line 8 of file player.h.
Referenced by DoPlayerThink().
#define PLAYER_LIVES 3 |
Definition at line 6 of file player.h.
Referenced by InitPlayer(), and ThinkPlayer().
void DecrementPlayerLives | ( | ) |
Definition at line 40 of file player.c.
References gPlayerLives.
void InitPlayer | ( | ) |
Initialize the player entity and variables thereof, also used to reset player.
Definition at line 12 of file player.c.
References DrawGeneric(), exitRequest, FindCachedEntity(), FRAME_DELAY, gCurrentLevel, gCurrentTime, gPlayer, gPlayerLives, gPowerUps, gZeroPos, InitNewEntity(), PLAYER_LIVES, ThinkPlayer(), TouchPlayer(), and UsePower().
Referenced by UpdatePowerSelectMenu().
entity_t* gPlayer |
The player entity
Definition at line 9 of file player.c.
Referenced by CallInfo(), FreeNonPlayerEntities(), InitPlayer(), ThinkEnemy(), ThinkPlayer(), TouchGoal(), UpdateInfinite(), and UpdateNormal().