Code formatting.

This commit is contained in:
2014-03-08 22:05:01 -04:30
parent 8f09cabf66
commit 96c7e316a9
2 changed files with 15 additions and 15 deletions

View File

@@ -12,8 +12,8 @@
static const char * title = "TITLE PENDING"; static const char * title = "TITLE PENDING";
static const char * subtitle = "A game for the Cyberpunk Jam 2014"; static const char * subtitle = "A game for the Cyberpunk Jam 2014";
static const char * aWinnerIsYou = "You have completed the scenario!"; static const char * aWinnerIsYou = "You have completed the scenario!";
static const char * thanks = "Thank you for playing."; static const char * thanks = "Thank you for playing.";
static const char * goInfo = "Press enter to return to the main menu."; static const char * goInfo = "Press enter to return to the main menu.";
static bool enter; static bool enter;
@@ -45,7 +45,7 @@ gsname_t goUpdate(){
return MENU; return MENU;
} }
return GAME_OVER; return GAME_OVER;
} }
void goRender(int w, int h){ void goRender(int w, int h){

View File

@@ -141,14 +141,14 @@ gsname_t update(){
if(objs[i].x == iY && objs[i].y == iX){ if(objs[i].x == iY && objs[i].y == iX){
player.x = objs[i].eX; player.x = objs[i].eX;
player.y = objs[i].eY; player.y = objs[i].eY;
if(strcmp(objs[i].target, "END") != 0){ if(strcmp(objs[i].target, "END") != 0){
loadMap(objs[i].target); loadMap(objs[i].target);
return IN_GAME; return IN_GAME;
}else{ }else{
initObjects(); initObjects();
loadMap("maps/start.map"); loadMap("maps/start.map");
return GAME_OVER; return GAME_OVER;
} }
} }
} }
} }
@@ -539,10 +539,10 @@ void initObjects(){
objs[i].id = 0; objs[i].id = 0;
objs[i].dId = 0; objs[i].dId = 0;
for(j = 0; j < MAX_STR; j++){ for(j = 0; j < MAX_STR; j++){
objs[i].name[j] = '\0'; objs[i].name[j] = '\0';
objs[i].target[j] = '\0'; objs[i].target[j] = '\0';
objs[i].dialog[j] = '\0'; objs[i].dialog[j] = '\0';
} }
objs[i].unlocked = 0; objs[i].unlocked = 0;
} }
} }