aboutsummaryrefslogtreecommitdiffstats
path: root/play.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-02-29 21:12:55 -0800
committerH. Peter Anvin <hpa@zytor.com>2012-02-29 21:12:55 -0800
commitc105886c048e0700de01c6ba327684b67aa0aed1 (patch)
treeec752aa3ccacb7cc32a23b051aff0f9a9ed98bf4 /play.c
parent9041bb43b4d5de67cab2a2224afcd1c40d53ec87 (diff)
downloadgrv-c105886c048e0700de01c6ba327684b67aa0aed1.tar.gz
grv-c105886c048e0700de01c6ba327684b67aa0aed1.tar.xz
grv-c105886c048e0700de01c6ba327684b67aa0aed1.zip
Clean up crap whitespace
Diffstat (limited to 'play.c')
-rw-r--r--play.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/play.c b/play.c
index 2daa9ba..93fc725 100644
--- a/play.c
+++ b/play.c
@@ -167,7 +167,7 @@ static void handle_key(SDL_KeyboardEvent *ke)
break;
}
}
-
+
if ( sym == kbd_keys[0] ) {
/* Up */
gp.XWk = (gp.XWk > 0) ? 0 : -1;
@@ -515,7 +515,7 @@ static void move_player(void)
x1 = gp.x; y1 = gp.y;
x = gp.x + gp.XWk;
y = gp.y + gp.YWk;
-
+
if ( x < 2 ) {
x = 2; gp.XWk = 0;
}
@@ -598,10 +598,10 @@ static void move_ghosts(void)
for ( i = 0 ; i < 4 ; i++ ) {
int s, f;
-
+
x = x1 + rx[rkt[r][i]] * gp.FS;
y = y1 + ry[rkt[r][i]] * gp.FS;
-
+
if ( x < 2 || x > 23 || y < 1 || y > 40 )
continue;
@@ -617,7 +617,7 @@ static void move_ghosts(void)
ghost[e].x = x;
ghost[e].y = y;
-
+
if ( s == 0x01 )
taken_by_ghost();
@@ -625,7 +625,7 @@ static void move_ghosts(void)
}
}
}
-}
+}
/*
* End of game/super bonus code
@@ -642,7 +642,7 @@ static void super_bonus(void)
lprint(3,5,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
lprint(6,2,"You have reached the end of the game!");
-
+
SB = 3*(gp.Sc - gp.SBs)/2;
gp.Sc += SB;
gp.SBs += SB;
@@ -652,7 +652,7 @@ static void super_bonus(void)
color(14,4);
lprint(10,21-(strlen(buf)+1)/2,buf);
color(15,4);
-
+
lprint(15,2,"You now get to keep trying, starting");
lprintf(16,2,"on level ");
color(14,4);
@@ -661,7 +661,7 @@ static void super_bonus(void)
print("...");
gp.Level = gp.ZLevel;
-
+
mymssleep(5000);
}
@@ -753,7 +753,7 @@ static void end_level(int done)
lprintf(16+i,21, " %d %" PRId64 " ", i+1, s);
}
}
-
+
/* Wait 4 seconds */
if ( gp.EOLWait ) {
mymssleep(4000);
@@ -772,15 +772,15 @@ static void end_level(int done)
gp.Hyp = 0;
break;
}
-
+
levelscreen();
-
+
lprintf(5, 17, "LEVEL %d", gp.Level+1);
lprint(12, 13, "LEVEL HYPERSPACE");
-
+
/* Wait 1 second */
mymssleep(1000);
-
+
gp.Hyp--;
gp.Level++;
}
@@ -825,7 +825,7 @@ void play(void)
if ( (ke = poll_key()) )
handle_key(ke);
-
+
move_player();
if ( gp.Status != Status_Live )
break;