summaryrefslogtreecommitdiff
path: root/scripts/RedsHouse2F.asm
diff options
context:
space:
mode:
authorDaniel Harding <33dannye@gmail.com>2019-01-13 22:38:16 -0600
committerGitHub <noreply@github.com>2019-01-13 22:38:16 -0600
commit725b86ebbec23bd1f53fd60bf0201c904fee951d (patch)
treea37f4d33c5b77635c7ff72b91a73fcd90c4af915 /scripts/RedsHouse2F.asm
parent108245cb21abb3abac051b7db84ed6c694192a61 (diff)
parentc7796024590fec48ac79756793c1a6e3b54daf8f (diff)
Merge pull request #196 from Rangi42/polishedmaps
Rename map files, labels, and constants to be consistent and work with Polished Map
Diffstat (limited to 'scripts/RedsHouse2F.asm')
-rwxr-xr-xscripts/RedsHouse2F.asm24
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/RedsHouse2F.asm b/scripts/RedsHouse2F.asm
new file mode 100755
index 00000000..5ec86678
--- /dev/null
+++ b/scripts/RedsHouse2F.asm
@@ -0,0 +1,24 @@
+RedsHouse2F_Script:
+ call EnableAutoTextBoxDrawing
+ ld hl, RedsHouse2F_ScriptPointers
+ ld a, [wRedsHouse2FCurScript]
+ jp CallFunctionInTable
+
+RedsHouse2F_ScriptPointers:
+ dw RedsHouse2FScript0
+ dw RedsHouse2FScript1
+
+RedsHouse2FScript0:
+ xor a
+ ld [hJoyHeld], a
+ ld a, PLAYER_DIR_UP
+ ld [wPlayerMovingDirection], a
+ ld a, 1
+ ld [wRedsHouse2FCurScript], a
+ ret
+
+RedsHouse2FScript1:
+ ret
+
+RedsHouse2F_TextPointers:
+ db "@"