Commit 5c46593 1 parent c03a545 commit 5c46593 Copy full SHA for 5c46593
File tree 3 files changed +35
-3
lines changed
3 files changed +35
-3
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,10 @@ GameplayLoop::
113
113
; Make sure that VBlank handler ran first
114
114
rst WaitVBlank
115
115
116
+ ; ---------------------------------------------------------
117
+ ; Check DPad input and move cursor accordingly
118
+ ; ---------------------------------------------------------
119
+
116
120
; Check for DPad input
117
121
ld hl , hPressedButtons
118
122
ld a , [ hl ]
@@ -193,8 +197,12 @@ GameplayLoop::
193
197
; Play sound
194
198
ld de , GameMoveBeep
195
199
call PlaySound
196
-
197
200
.noCursorMove
201
+
202
+ ; ---------------------------------------------------------
203
+ ; Update cursor animation
204
+ ; ---------------------------------------------------------
205
+
198
206
; Check if cursor animation needs to be updated
199
207
ld hl , wCursorAnimCooldown
200
208
dec [ hl ]
@@ -217,8 +225,12 @@ GameplayLoop::
217
225
.reloadOne
218
226
ld a , 1
219
227
ld [ wCursorPosAnimAdd ], a
220
-
221
228
.noCursorAnimUpdate
229
+
230
+ ; ---------------------------------------------------------
231
+ ; Check for A button press to place symbol
232
+ ; ---------------------------------------------------------
233
+
222
234
; Check if A button was pressed
223
235
ld hl , hPressedButtons
224
236
bit PADB_A , [ hl ]
Original file line number Diff line number Diff line change @@ -90,6 +90,10 @@ MenuLoop::
90
90
; Make sure that VBlank handler ran first
91
91
rst WaitVBlank
92
92
93
+ ; ---------------------------------------------------------
94
+ ; Check for UP/DOWN input and change selected option
95
+ ; ---------------------------------------------------------
96
+
93
97
; Check if either up/down was pressed
94
98
ld a , [ hPressedButtons ]
95
99
and PADF_DOWN | PADF_UP
@@ -121,8 +125,12 @@ MenuLoop::
121
125
; Play sound
122
126
ld de , MenuMoveBeep
123
127
call PlaySound
124
-
125
128
.noCursorMove
129
+
130
+ ; ---------------------------------------------------------
131
+ ; Check for game to be started on START press
132
+ ; ---------------------------------------------------------
133
+
126
134
; Check if START was pressed
127
135
ld a , [ hPressedButtons ]
128
136
and PADF_START
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ SECTION "Win Screen Code", ROM0
5
5
WinLoop::
6
6
; Make sure that VBlank handler ran first
7
7
rst WaitVBlank
8
+
9
+ ; ---------------------------------------------------------
10
+ ; Check for game to be restarted on START press
11
+ ; ---------------------------------------------------------
8
12
9
13
; Check if Start is pressed
10
14
ld a , [ hPressedButtons ]
@@ -22,6 +26,10 @@ WinLoop::
22
26
jp GameplayLoop
23
27
.noRestart
24
28
29
+ ; ---------------------------------------------------------
30
+ ; Update animations for 'PRESS START' Text
31
+ ; ---------------------------------------------------------
32
+
25
33
; Check if animation should be updated
26
34
ld hl , wWinAnimCooldown
27
35
dec [ hl ]
@@ -56,6 +64,10 @@ WinLoop::
56
64
ld [ hStringDrawFlag ], a
57
65
.noUpdateWinAnim
58
66
67
+ ; ---------------------------------------------------------
68
+ ; Update animation for win symbols
69
+ ; ---------------------------------------------------------
70
+
59
71
; Check if draw
60
72
ld a , [ wPlayerWin ]
61
73
and a
You can’t perform that action at this time.
0 commit comments