-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame_ss.asm
52 lines (47 loc) · 1.1 KB
/
game_ss.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
;Airaki! - FSE 2014
;Released under the GPL V3, see LICENSE.TXT
ssaction_find:
ld a,(FLIP_FLAGS)
or a
ret nz ;Can't while flipping or animating panel
ld a,(ANIM_SHAKE)
or a
ret nz ;Can't either if the panel is getting shaked up (regen)
ld a,(SOLUTION_X)
ld (CURSOR_X),a
ld a,(SOLUTION_Y)
ld (CURSOR_Y),a
ld a,(SOLUTION_MODE)
ld (CURSOR_MODE),a
ld a,1
ld (FLIP_TOSET),a ;Treat flip as user-initiated
call makeflip
xor a
ld (HAS_SPECIAL),a
ret
ssaction_beer:
ld b,ATK_BEER
ld c,0
call addattack
xor a
ld (HAS_SPECIAL),a
ret
enemy_dizzy:
ld a,DXCP_ATTACK
ld (ENEMY_DIZZY),a
ret
ssaction_hammer:
;Replace punch with hammer
ld hl,(:tiles_hammer*$4000)+tiles_hammer
ld de,$8000+((T_ICONS+4)*16)
call loadtiles_auto
xor a
ld (HAMMER_COUNTER),a
ld (HAS_SPECIAL),a
ld a,1
ld (HAMMER_MODE),a
ret
ssaction_lut:
.dw ssaction_find
.dw ssaction_beer
.dw ssaction_hammer