-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.asm
68 lines (58 loc) · 2.64 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
;*******************************************************************************
;
; Copyright (C) 2023 Dave Moore
;
; This file is part of Space-Hockey.
;
; Space-Hockey is free software: you can redistribute it and/or modify it under
; the terms of the GNU General Public License as published by the Free Software
; Foundation, either version 2 of the License, or (at your option) any later
; version.
;
; Space-Hockey is distributed in the hope that it will be useful, but WITHOUT
; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
; FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
; details.
;
; You should have received a copy of the GNU General Public License along with
; Space-Hockey. If not, see <http://www.gnu.org/licenses/>.
;
; If you modify this program, or any covered work, by linking or combining it
; with the libraries referred to in README (or a modified version of said
; libraries), containing parts covered by the terms of said libraries, the
; licensors of this program grant you additional permission to convey the
; resulting work.
;
;*******************************************************************************
matrix_table: ; Space for UDCs
DEFB 0, 0, 0, 0, 0, 0
DEFB 0, 0, 0, 0, 0, 0
DEFB 0, 0, 0, 0, 0, 0
DEFB 0, 0, 0, 0, 0, 0
DEFB 0, 0, 0, 0, 0, 0
DEFB 0, 0, 0, 0, 0, 0
DEFB 0, 0, 0, 0, 0, 0
DEFB 0, 0, 0, 0, 0, 0
game_state: ; Space for game state
DEFB 0, 0, 0, 0, 0, 0 ; P1 old_x/y, x/y, character, score
DEFB 0, 0, 0, 0, 0, 0 ; P2 old_x/y, x/y, character, score
DEFB 0, 0, 0, 0 ; Ball old_x/y, x/y
col_det_state: ; Colision Detection variables
DEFB 0, 0, 0, 0, 0, 0 ; P1/P2 offset_y/x, P1/P2 adjacent flags
quit_flag:
DEFB 0 ; Set to #FF if we want to quit
timer: ; Space for timer
DEFB 0, 0 ; Time left (Packed BCD - 4 Digits)
time_decrement:
DEFB 1, 0 ; Timer decrement
time_game_over:
DEFB 0, 0 ; Game Over timer value
sound_ball: ; Sound effects definitions
DEFB 1, 0, 0, 30, 0, 0
DEFB 7, 10, 0
sound_goal:
DEFB 2, 0, 0, 0, 0, 15 ; Byte Offset +5 gets changed
DEFB 5, 15, 0
sound_game_over:
DEFB 1, 0, 0, 5, 0, 0 ; Byte Offset +3 gets changed
DEFB 7, 10, 0