-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame_state.asm
More file actions
33 lines (26 loc) · 782 Bytes
/
game_state.asm
File metadata and controls
33 lines (26 loc) · 782 Bytes
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
GAME_TRANSITION_ACTION: equ 0xe00a
GAME_TRANSITION_ACTION_START_LEVEL: equ 0 ; start level
GAME_TRANSITION_ACTION_PLAY_LEVEL: equ 1 ; normal play
GAME_TRANSITION_ACTION_NEXT_LEVEL: equ 2 ; pause and go to the next level
; Game state
; 0: demo / in title screen
; 1: normal play
; 2: normal play, but without score updates
; (3: demo?)
GAME_STATE: equ 0xe00b
IN_DEMO: equ 0xe00d
; Pause in bit 6 and start in bit 4
; Bit 0: up
; Bit 1: down
; Bit 2: left
; Bit 3: right
; Bit 4: start
; Bit 6: pause
CONTROLS: equ 0xe0bf
DEMO_TIMEOUT: equ 0xe5ad
; Actions for the title's screen
TITLE_SCREEN_ACTION: equ 0xe53c
TITLE_SCREEN_ACTION_GOTO_TITLE_SCREEN: equ 0
TITLE_SCREEN_ACTION_WAIT_IN_TITLE_SCREEN: equ 1
TITLE_SCREEN_ACTION_START_GAME: equ 2
TITLE_SCREEN_ACTION_DEMO: equ 5