mirror of
https://github.com/dwsJason/xrick2gs.git
synced 2024-09-28 05:56:40 +00:00
Game Over: now working
This commit is contained in:
parent
83ad296ea3
commit
19ff6fd594
@ -35,7 +35,7 @@ screen_gameover(void)
|
|||||||
{
|
{
|
||||||
static U8 seq = 0;
|
static U8 seq = 0;
|
||||||
static U8 period = 0;
|
static U8 period = 0;
|
||||||
#ifdef GFXST
|
#if defined(GFXST) || defined(GFXGS)
|
||||||
static U32 tm = 0;
|
static U32 tm = 0;
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_SOUND
|
#ifdef ENABLE_SOUND
|
||||||
@ -55,7 +55,7 @@ screen_gameover(void)
|
|||||||
|
|
||||||
switch (seq) {
|
switch (seq) {
|
||||||
case 1: /* display banner */
|
case 1: /* display banner */
|
||||||
#ifdef GFXST
|
#if defined(GFXST) || defined(GFXGS)
|
||||||
sysvid_clear();
|
sysvid_clear();
|
||||||
tm = sys_gettime();
|
tm = sys_gettime();
|
||||||
#endif
|
#endif
|
||||||
@ -73,7 +73,7 @@ screen_gameover(void)
|
|||||||
case 2: /* wait for key pressed */
|
case 2: /* wait for key pressed */
|
||||||
if (control_status & CONTROL_FIRE)
|
if (control_status & CONTROL_FIRE)
|
||||||
seq = 3;
|
seq = 3;
|
||||||
#ifdef GFXST
|
#if (defined GFXST) || (defined GFXGS)
|
||||||
else if (sys_gettime() - tm > SCREEN_TIMEOUT)
|
else if (sys_gettime() - tm > SCREEN_TIMEOUT)
|
||||||
seq = 4;
|
seq = 4;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user