More misc. updates.
This commit is contained in:
parent
0d87786af4
commit
e5976f04dd
|
@ -76,6 +76,7 @@ Entity *initBob(void)
|
||||||
|
|
||||||
b->health = b->healthMax = game.hearts;
|
b->health = b->healthMax = game.hearts;
|
||||||
b->power = b->powerMax = game.cells;
|
b->power = b->powerMax = game.cells;
|
||||||
|
b->oxygen = MAX_OXYGEN;
|
||||||
|
|
||||||
b->weaponType = WPN_PISTOL;
|
b->weaponType = WPN_PISTOL;
|
||||||
b->reload = 0;
|
b->reload = 0;
|
||||||
|
|
|
@ -29,7 +29,7 @@ void initAtlasTest(void)
|
||||||
dev.cheatPower = 1;
|
dev.cheatPower = 1;
|
||||||
dev.cheatHealth = 1;
|
dev.cheatHealth = 1;
|
||||||
|
|
||||||
initGame();
|
loadGame();
|
||||||
|
|
||||||
initHub();
|
initHub();
|
||||||
|
|
||||||
|
@ -43,5 +43,5 @@ void initAtlasTest(void)
|
||||||
|
|
||||||
saveConfig();
|
saveConfig();
|
||||||
|
|
||||||
/*awardTrophy("BEACH");*/
|
saveGame();
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,10 +23,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
extern void initWorld(void);
|
extern void initWorld(void);
|
||||||
extern void initMap(void);
|
extern void initMap(void);
|
||||||
extern void initHub(void);
|
extern void initHub(void);
|
||||||
extern void initGame(void);
|
|
||||||
extern void initEntities(void);
|
extern void initEntities(void);
|
||||||
extern void loadWorld(char *id);
|
extern void loadWorld(char *id);
|
||||||
extern void saveConfig(void);
|
extern void saveConfig(void);
|
||||||
|
extern void loadGame(void);
|
||||||
|
extern void saveGame(void);
|
||||||
extern void awardTrophy(char *id);
|
extern void awardTrophy(char *id);
|
||||||
|
|
||||||
extern Dev dev;
|
extern Dev dev;
|
||||||
|
|
|
@ -59,6 +59,7 @@ static void doDebugControls(void)
|
||||||
|
|
||||||
if (app.keyboard[SDL_SCANCODE_0])
|
if (app.keyboard[SDL_SCANCODE_0])
|
||||||
{
|
{
|
||||||
|
saveGame();
|
||||||
saveWorld();
|
saveWorld();
|
||||||
app.keyboard[SDL_SCANCODE_0] = 0;
|
app.keyboard[SDL_SCANCODE_0] = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
#include "../common.h"
|
#include "../common.h"
|
||||||
|
|
||||||
|
extern void saveGame(void);
|
||||||
extern void saveWorld(void);
|
extern void saveWorld(void);
|
||||||
|
|
||||||
extern App app;
|
extern App app;
|
||||||
|
|
Loading…
Reference in New Issue