-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdraw_wing_debug.c
50 lines (39 loc) · 1.25 KB
/
draw_wing_debug.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
#include <arch/zx.h>
#include <arch/zx/sp1.h>
#include <input.h>
#include <z80.h> // for z80_bpoke(), z80_wpoke(), im2 functions
#include <string.h> // for memset()
#include <stdlib.h> // for rand()
#include <intrinsic.h> // for intrinsic_di()
#include <sound.h> // for bit_beepfx()
#include "src/ship.c"
#include "src/wing.c"
#include "src/base_sp1.c"
#include "src/draw_wing.c"
int main() {
struct sp1_ss *s;
wing our;
init_wing(&our);
// init_wing(&their);
// add_ship(&their, "KEK", INTERCEPTOR);
// add_ship(&our, INTERCEPTOR);
// add_ship(&our, BOMBER);
// add_ship(&our, SUPPORT);
// add_ship(&our, DESTROYER);
// add_ship(&our, DESTROYER);
fill_wing_with_rand_ships(&our, 1, 1, 1);
our.protector = 2;
init_sp1();
// s = sp1_CreateSpr(SP1_DRAW_MASK2LB, SP1_TYPE_2BYTE, 4, 0, 0);
init_ship_sprites();
init_shield_sprites();
// sp1_AddColSpr(s, SP1_DRAW_MASK2, 0, 48, 0);
// sp1_AddColSpr(s, SP1_DRAW_MASK2RB, 0, 0, 0);
// sp1_IterateSprChar(s, color_ship);
render_wing(&our, OUR_SIDE);
// render_wing(&our, THEIR_SIDE);
// sp1_MoveSprPix(s, &cr, interceptor, 16, 16);
sp1_UpdateNow();
while(1);
return 0;
}