-
Notifications
You must be signed in to change notification settings - Fork 0
/
GameConstants.asm
94 lines (89 loc) · 3.42 KB
/
GameConstants.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
#importonce
#import "Vic20MemoryMap.asm"
// Character set @ $1200
GAMESETTINGS:
{
.label Screen = DISPLAY.SCREENX
.label ScreenColour = DISPLAY.COLORMAPX
.label UNUSED_BASIC_RAM = $12BC
.label GridStart = $1064
.label GridRows = $08
.label GridCols = $08
.label GridWidth = $18
.label GridHeight = $18
.label ScreenRow = $19
.label MOVE_POSITION_UP_OR_DOWN = GAMESETTINGS.GridWidth+1 //Move 1 full line up or down from current position
.label CARRY = $00
.label PLAYER_1_SCORE = $1035
.label PLAYER_2_SCORE = $1046
.label HIGH_SCORE_SCREEN = $1056
.label HIGH_SCORE = $207B //TODO move to memory
}
// Keyboard Scancodes
KEYBOARD:
{
.label NUL = $40
.label KEY_F1 = $27
.label KEY_F3 = $2F
.label KEY_F5 = $37
}
// Zero Page
PAGEZERO:
{
.label ZP_00 = $00
.label ZP_01 = $01
.label ZP_POINTER_02 = $02 // grid position
.label ZP_03 = $03 //
.label ZP_GRID_SCREEN_POINTER = $04 // grid position2
.label ZP_05 = $05 //
.label ZP_06 = $06
.label ZP_07 = $07
.label ZP_08 = $08
.label ZP_09 = $09
.label JOYSTICK_DIR = $0a
.label ZP_0B = $0b
.label ZP_GameSpeed = $0d
.label ZP_0E = $0e
.label ZP_0F = $0f
.label ZP_10 = $10
.label ZP_13 = $13
.label ZP_14 = $14
.label ZP_15 = $15
.label ZP_completedBlk = $17
.label ZP_18 = $18
.label ZP_Pursures = $19
.label ZP_20 = $20
.label ZP_21 = $21
.label ZP_1A = $1A
// = $21
.label ZP_Speed = $1f
.label ZP_Players = $26
.label LSTX = $C5
}
// Characters
CHAR:
{
.label ship_up = $4b
.label ship_right = $4c
.label ship_down = $4d
.label ship_left = $4e
.label grid_cross = $4f
.label grid_vert = $50
.label grid_hori = $51
.label grid_tlc = $53
.label grid_trc = $52
.label grid_brc = $54
.label grid_blc = $55
.label grid_T_right = $56
.label grid_T_left = $57
.label grid_T_down = $58
.label grid_T_up = $59
.label Bug1_up = $5b
.label Bug1_right = $5c
.label Bug1_down = $5d
.label Bug1_left = $5e
.label Bug2_up = $5f
.label Bug2_right = $60
.label Bug2_down = $51
.label Bug2_left = $62
}