-
Notifications
You must be signed in to change notification settings - Fork 0
/
win_stage.c
53 lines (47 loc) · 1.19 KB
/
win_stage.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef WIN_STAGE_C
#define WIN_STAGE_C
#include <evo.h>
#include "font.c"
#include "gameloop.c"
#include "engine.c"
void win_stage()
{
music_play(MUS_WIN);
pal_bright(BRIGHT_MIN);
scroll(0, 0);
unpack_pal256(PAL256_FINAL, 0);
draw_image_g256(0, 0, IMG256_FINAL);
pal_bright(BRIGHT_MID);
for (i=0;i<255;i++) {
swap_screen();
swap_screen();
swap_screen();
swap_screen();
swap_screen();
swap_screen();
}
init_text();
text_y = 14;
text_x = 15;
put_str("You win!\n");
text_x = 12;
put_str("Your score: ");
put_num(score);
text_x = 1;
text_y += 2;
put_str("This is party version of\n\"Lost Donation Box Incident\" game.\n\n Thank you for playing!\n\n Have a nice days on CAFe DEMOPARTY 2019 \n\nYou may support development via PayPal:\n\n anihirash@gmail.com");
for (i = 0; i < 200; i++)
swap_screen();
while (TRUE)
{
keyboard(keys);
if (keys[FIRE])
{
while (keys[FIRE])
keyboard(keys);
state = STATE_MENU;
break;
}
}
}
#endif