-
Notifications
You must be signed in to change notification settings - Fork 0
/
Data.asm
118 lines (107 loc) · 2.42 KB
/
Data.asm
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
; Joystick
JOYSTICK_INPUT = $02
JOYSTICK_INPUT1 = $02
JOYSTICK_MASK_RIGHT = %00001000
JOYSTICK_MASK_LEFT = %00000100
JOYSTICK_MASK_UP = %00000001
JOYSTICK_MASK_DOWN = %00000010
JOYSTICK_MASK_BTN = %00010000
; UI
BOX_SELECTOR_TL byte $70
BOX_SELECTOR_TR byte $6E
BOX_SELECTOR_BL byte $6D
BOX_SELECTOR_BR byte $7D
; Player
PLAYER_SPRITE_INDEX byte $80
PLAYER_X byte $15
PLAYER_Y byte $32
PLAYER_ACTION = #1
PLAYER_MOVED_UP = #2
PLAYER_MOVED_RIGHT = #4
PLAYER_MOVED_DOWN = #8
PLAYER_MOVED_LEFT = #16
PLAYER_IDLE byte $80
PLAYER_RIGHT byte $81
PLAYER_LEFT byte $83
PLAYER_UP byte $85
PLAYER_DOWN byte $87
; Player Actions
PLAYER_ACTION_SHOOT = #%00000001
PLAYER_ACTION_TALK = #%00000010
PLAYER_ACTION_USE = #%00000100
; Player Bullet
PLAYER_BULLET_SPRITE_INDEX byte $93
PLAYER_BULLET_X byte $15
PLAYER_BULLET_Y byte $32
PLAYER_BULLET_HORI byte $93
PLAYER_BULLET_VERT byte $94
PLAYER_BULLET_NWSE byte $95
PLAYER_BULLET_SWNE byte $96
PLAYER_BULLET_EXPLOSION1 byte $97
PLAYER_BULLET_EXPLOSION2 byte $98
PLAYER_BULLET_EXPLOSION3 byte $99
PLAYER_BULLET_EXPLOSION4 byte $9a
PLAYER_BULLET_EXPLOSION5 byte $9b
;Door
DOOR_SPRITE_INDEX byte $9c
DOOR_X byte $f8
DOOR_Y byte $b3
DOOR_FRAME1 byte $9c
DOOR_FRAME2 byte $9d
DOOR_FRAME3 byte $9e
DOOR_FRAME4 byte $9f
DOOR_FRAME5 byte $a0
;horizontal door
HORI_DOOR_SPRITE_INDEX byte $a1
HORI_DOOR_X byte $0f
HORI_DOOR_Y byte $a2
HORI_DOOR_FRAME1 byte $a1
HORI_DOOR_FRAME2 byte $a2
HORI_DOOR_FRAME3 byte $a3
HORI_DOOR_FRAME4 byte $a4
HORI_DOOR_FRAME5 byte $a5
; Button
BUTTON_SPRITE_INDEX byte $a6
BUTTON_X byte $f1
BUTTON_Y byte $da
BUTTON_FRAME1 byte $a6
BUTTON_FRAME2 byte $a7
BUTTON_FRAME3 byte $a8
BUTTON2_SPRITE_INDEX byte $a6
BUTTON2_X byte $0
BUTTON2_Y byte $80
BUTTON2_FRAME1 byte $a6
BUTTON2_FRAME2 byte $a7
BUTTON2_FRAME3 byte $a8
; NPCs
NPC1_SPRITE_INDEX byte $80
NPC2_SPRITE_INDEX byte $80
NPC1_X byte $52
NPC1_Y byte $d7
NPC2_X byte $0f
NPC2_Y byte $80
; Animation
PLAYER_RIGHT_ANIM1 = #$81
PLAYER_RIGHT_ANIM2 = #$82
PLAYER_LEFT_ANIM1 = #$83
PLAYER_LEFT_ANIM2 = #$84
PLAYER_UP_ANIM1 = #$85
PLAYER_UP_ANIM2 = #$86
PLAYER_DOWN_ANIM1 = #$87
PLAYER_DOWN_ANIM2 = #$88
PLAYER_DYING_ANIM1 = #$89
PLAYER_DYING_ANIM2 = #$8A
PLAYER_SHOOT_N = #$8B
PLAYER_SHOOT_NE = #$8C
PLAYER_SHOOT_E = #$8D
PLAYER_SHOOT_SE = #$8E
PLAYER_SHOOT_S = #$8F
PLAYER_SHOOT_SW = #$90
PLAYER_SHOOT_W = #$91
PLAYER_SHOOT_NW = #$92
; Colours
COLOUR_BLACK = #0
COLOUR_WHITE = #1
COLOUR_RED = #2
COLOUR_CYAN = #3
COLOUR_LIGHT_BLUE = #14