summaryrefslogtreecommitdiff
path: root/home/sprite_updates.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/sprite_updates.asm')
-rw-r--r--home/sprite_updates.asm21
1 files changed, 21 insertions, 0 deletions
diff --git a/home/sprite_updates.asm b/home/sprite_updates.asm
new file mode 100644
index 000000000..121afc87b
--- /dev/null
+++ b/home/sprite_updates.asm
@@ -0,0 +1,21 @@
+DisableSpriteUpdates:: ; 0x2ed3
+ xor a
+ ld [hMapAnims], a
+ ld a, [wVramState]
+ res 0, a
+ ld [wVramState], a
+ ld a, $0
+ ld [wSpriteUpdatesEnabled], a
+ ret
+; 0x2ee4
+
+EnableSpriteUpdates:: ; 2ee4
+ ld a, $1
+ ld [wSpriteUpdatesEnabled], a
+ ld a, [wVramState]
+ set 0, a
+ ld [wVramState], a
+ ld a, $1
+ ld [hMapAnims], a
+ ret
+; 2ef6