diff options
author | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2014-05-22 18:13:20 -0400 |
---|---|---|
committer | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2014-05-22 18:13:20 -0400 |
commit | 15427f532085846ab6b51719be687951a094cb6c (patch) | |
tree | edea9b189e91641a12dd521756894df84aeeace7 /engine/game_corner_slots.asm | |
parent | ea3ba4cde3706b7c77efb705555ec0c86321cbe2 (diff) |
Pull a lot of engine out of main.asm
Diffstat (limited to 'engine/game_corner_slots.asm')
-rwxr-xr-x | engine/game_corner_slots.asm | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/engine/game_corner_slots.asm b/engine/game_corner_slots.asm new file mode 100755 index 00000000..f3009b35 --- /dev/null +++ b/engine/game_corner_slots.asm @@ -0,0 +1,54 @@ +StartSlotMachine: ; 37e2d (d:7e2d) + ld a, [wTrainerSpriteOffset] + cp $fd + jr z, .printOutOfOrder + cp $fe + jr z, .printOutToLunch + cp $ff + jr z, .printSomeonesKeys + callba AbleToPlaySlotsCheck + ld a, [wTrainerSpriteOffset] + and a + ret z + ld a, [$cd05] + ld b, a + ld a, [wTrainerFacingDirection] + inc a + cp b + jr z, .asm_37e58 + ld a, $fd + jr .asm_37e5a +.asm_37e58 + ld a, $fa +.asm_37e5a + ld [$cc5b], a + ld a, [H_LOADEDROMBANK] + ld [$cc5e], a + call PromptUserToPlaySlots + ret +.printOutOfOrder + ld a, $28 + jr .printText +.printOutToLunch + ld a, $29 + jr .printText +.printSomeonesKeys + ld a, $2a +.printText + push af + call EnableAutoTextBoxDrawing + pop af + call PrintPredefTextID + ret + +GameCornerOutOfOrderText: ; 37e79 (d:7e79) + TX_FAR _GameCornerOutOfOrderText + db "@" + +GameCornerOutToLunchText: ; 37e7e (d:7e7e) + TX_FAR _GameCornerOutToLunchText + db "@" + +GameCornerSomeonesKeysText: ; 37e83 (d:7e83) + TX_FAR _GameCornerSomeonesKeysText + db "@" |