aboutsummaryrefslogtreecommitdiff
path: root/lorchatest.c
blob: 31d7f81fc3e397c41159e2bdbdef63b211d2e5d6 (plain)
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
#include <conio.h>
#include <peekpoke.h>

extern void __fastcall__ damage_lorcha(int which);
extern void __fastcall__ draw_lorcha(int which);
extern void __fastcall__ flash_lorcha(int which);
extern void __fastcall__ clear_lorcha(int which);
extern void __fastcall__ sink_lorcha(int which);

int main(void) {
	int i, j;
	POKE(756, 0xb8);
	for(i=0; i<10; i++) {
		// draw_lorcha(i);
		// cgetc();
		// clear_lorcha(i);
		// cgetc();
		draw_lorcha(i);
		cgetc();
		sink_lorcha(i);
		cgetc();
		draw_lorcha(i);
		for(j=0; j<5; j++) {
			cgetc();
			flash_lorcha(i);
			cgetc();
			flash_lorcha(i);
			cgetc();
			damage_lorcha(i);
		}
	}
}