2 ; Copyright (C
) 2010 Kent Hansen
.
4 ; This program is free software
; you can redistribute it
and/or modify
5 ; it under the terms of the GNU General Public License as published by
6 ; the Free Software Foundation
; either version
3 of the License
, or
7 ; (at your option
) any later version
.
9 ; This program is distributed in the hope that it will be useful
,
10 ; but WITHOUT ANY WARRANTY
; without even the implied warranty of
11 ; MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE
. See the
12 ; GNU General Public License
for more details
.
14 ; You should have received a copy of the GNU General Public License
15 ; along with
this program
. If
not, see
<http
://www.gnu.org/licenses/>.
21 .include
"common/fixedpoint.h"
25 ; Holds the state of a falling target
.
32 ; 5 - letter (special orb
)
36 state
.db
; b2
..0:lane
, b5
..b3
:type
, b7
:exploding
45 duration
.db
; number of rows it lasts
46 next
.db
; next target on linked list
49 .if sizeof target_1
!= sizeof target_2
50 .error
"target_1 and target_2 must have the same size"
53 .extrn free_targets_list
:byte
54 .extrn active_targets_head
:byte
55 .extrn active_targets_tail
:byte
56 .extrn targets_1
:target_1
57 .extrn targets_2
:target_2
59 .extrn initialize_target_lists
:proc
60 .extrn move_target
:proc
61 .extrn add_to_active_targets_list
:proc