summaryrefslogtreecommitdiff
path: root/constants
diff options
context:
space:
mode:
Diffstat (limited to 'constants')
-rw-r--r--constants/audio_constants.asm26
-rwxr-xr-xconstants/map_data_constants.asm5
-rw-r--r--constants/map_object_constants.asm14
-rw-r--r--constants/music_constants.asm2
-rw-r--r--constants/sprite_data_constants.asm6
5 files changed, 47 insertions, 6 deletions
diff --git a/constants/audio_constants.asm b/constants/audio_constants.asm
index bb2bb7f2..38719f92 100644
--- a/constants/audio_constants.asm
+++ b/constants/audio_constants.asm
@@ -1,3 +1,29 @@
+; pitch
+ const_def
+ const C_ ; 0
+ const C# ; 1
+ const D_ ; 2
+ const D# ; 3
+ const E_ ; 4
+ const F_ ; 5
+ const F# ; 6
+ const G_ ; 7
+ const G# ; 8
+ const A_ ; 9
+ const A# ; A
+ const B_ ; B
+
+; channel
+ const_def
+ const Ch1 ; 0
+ const Ch2 ; 1
+ const Ch3 ; 2
+ const Ch4 ; 3
+ const Ch5 ; 4
+ const Ch6 ; 5
+ const Ch7 ; 6
+ const Ch8 ; 7
+
; HW sound channel register base addresses
HW_CH1_BASE EQU (rNR10 % $100)
HW_CH2_BASE EQU ((rNR21 % $100) - 1)
diff --git a/constants/map_data_constants.asm b/constants/map_data_constants.asm
index 154c4163..4b98bdb3 100755
--- a/constants/map_data_constants.asm
+++ b/constants/map_data_constants.asm
@@ -7,3 +7,8 @@ EAST EQU 1
WEST EQU 2
SOUTH EQU 4
NORTH EQU 8
+
+; tileset environments
+INDOOR EQU 0
+CAVE EQU 1
+OUTDOOR EQU 2
diff --git a/constants/map_object_constants.asm b/constants/map_object_constants.asm
new file mode 100644
index 00000000..f5fc952b
--- /dev/null
+++ b/constants/map_object_constants.asm
@@ -0,0 +1,14 @@
+; different kinds of people events
+ITEM EQU $80
+TRAINER EQU $40
+
+WALK EQU $FE
+STAY EQU $FF
+
+DOWN EQU $D0
+UP EQU $D1
+LEFT EQU $D2
+RIGHT EQU $D3
+NONE EQU $FF
+
+BOULDER_MOVEMENT_BYTE_2 EQU $10
diff --git a/constants/music_constants.asm b/constants/music_constants.asm
index 9f726fb7..7bbe5c62 100644
--- a/constants/music_constants.asm
+++ b/constants/music_constants.asm
@@ -238,3 +238,5 @@ MAX_SFX_ID_2 EQUS "SFX_SILPH_SCOPE"
music_const SFX_SLOTS_NEW_SPIN, SFX_Slots_New_Spin
music_const SFX_SHOOTING_STAR, SFX_Shooting_Star
MAX_SFX_ID_3 EQUS "SFX_SHOOTING_STAR"
+
+SFX_STOP_ALL_MUSIC EQU $ff
diff --git a/constants/sprite_data_constants.asm b/constants/sprite_data_constants.asm
index d5788cb1..48a34446 100644
--- a/constants/sprite_data_constants.asm
+++ b/constants/sprite_data_constants.asm
@@ -1,9 +1,3 @@
-; different kinds of people events
-ITEM EQU $80
-TRAINER EQU $40
-
-BOULDER_MOVEMENT_BYTE_2 EQU $10
-
; sprite facing directions
SPRITE_FACING_DOWN EQU $00
SPRITE_FACING_UP EQU $04