Add quick restart.

This commit is contained in:
Randy Thiemann 2023-10-25 22:42:30 +02:00
parent 9fae4ba428
commit 80c735c6e0
6 changed files with 21 additions and 2 deletions

View File

@ -92,6 +92,7 @@ ScoreIncrement points are then awarded.
- Up — Sonic/Hard drop - Up — Sonic/Hard drop
- Down — Soft drop/Lock - Down — Soft drop/Lock
- Left/Right — Move - Left/Right — Move
- A+B+Select — Bail to main menu if paused
### Game Over ### Game Over
- A — Restart immediately - A — Restart immediately

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +1,5 @@
logo = b"\x01\x10\xCE\xEF\x00\x00\x44\xAA\x00\x74\x00\x18\x11\x95\x00\x34\x00\x1A\x00\xD5\x00\x22\x00\x69\x6F\xF6\xF7\x73\x09\x90\xE1\x10\x44\x40\x9A\x90\xD5\xD0\x44\x30\xA9\x21\x5D\x48\x22\xE0\xF8\x60" logo = b"\x01\x10\xCE\xEF\x00\x00\x44\xAA\x00\x74\x00\x18\x11\x95\x00\x34\x00\x1A\x00\xD5\x00\x22\x00\x69\x6F\xF6\xF7\x73\x09\x90\xE1\x10\x44\x40\x9A\x90\xD5\xD0\x44\x30\xA9\x21\x5D\x48\x22\xE0\xF8\x60"
with open('bin/DMGTRIS.GBC', 'rb+') as f: with open('bin/DMGTRIS.pocket', 'rb+') as f:
f.seek(0x104) f.seek(0x104)
f.write(logo) f.write(logo)

View File

@ -1184,6 +1184,10 @@ FieldProcess::
; ************************************************************** ; **************************************************************
; HANDLE UP ; HANDLE UP
; Assume 1G or lower.
ld a, 1
ldh [hWantedG], a
; Is a hard/sonic drop requested? Skip if in 20G mode. ; Is a hard/sonic drop requested? Skip if in 20G mode.
ldh a, [hCurrentGravityPerTick] ldh a, [hCurrentGravityPerTick]
cp a, 20 cp a, 20

View File

@ -506,7 +506,21 @@ gameOverMode:
pauseMode: pauseMode:
ldh a, [hStartState] ; Quick reset.
ldh a, [hAState]
cp a, 0
jr z, :+
ldh a, [hBState]
cp a, 0
jr z, :+
ldh a, [hSelectState]
cp a, 0
jr z, :+
call SwitchToTitle
jp EventLoopPostHandler
; Unpause
: ldh a, [hStartState]
cp a, 1 cp a, 1
jr nz, :+ jr nz, :+
call FromBackupField call FromBackupField