Say hello to D-Pad Hero 2 repository
[dpadhero2.git] / player.h
blobb75e78b5a46c4504874d076f1f123c10ab566274
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/>.
18 .ifndef PLAYER_H
19 .define PLAYER_H
21 ; Why the magic number 40? Because the health meter has 40 "slots" (half-hearts)
22 ENERGY_MAX .equ (40*4-1)
24 .struc player_state
25 difficulty .db[2] ; 0 = easy, 1 = normal, 2 = hard
26 speed_level .db[2]
27 credit .db[2]
28 unlocked_songs .db[2]
29 completed_challenges .db[6] ; 8 challenges (bits) per song
30 last_completed_challenges .db[2]
31 new_completed_challenges .db[2]
32 won_credit .db[2]
33 acquired_pad_pieces .db[2]
34 life_count .db[2]
35 energy_level .db[2]
36 final_energy_level .db[2]
37 vu_level .db[2]
38 letter_index .db[2]
39 points_level .db[2]
40 score .db[3*2]
41 checkpoint_score .db[3*2]
42 top_score .db[3*2]
43 current_streak .dw[2]
44 longest_streak .dw[2]
45 missed_count .dw[2]
46 hit_count .dw[2]
47 err_count .dw[2]
48 acquired_letters .db[2]
49 skull_hit_count .db[2]
50 pow_hit_count .db[2]
51 star_hit_count .db[2]
52 clock_hit_count .db[2]
53 fake_skull_hit_count .db[2]
54 heart_spawn_count .db[2]
55 skull_miss_count .db[2]
56 pow_miss_count .db[2]
57 star_miss_count .db[2]
58 clock_miss_count .db[2]
59 fake_skull_miss_count .db[2]
60 beat_game .db[2]
61 .ends
63 .extrn player:player_state
65 .endif