summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornotyourav <65437533+notyourav@users.noreply.github.com>2021-10-31 23:17:43 -0700
committerGitHub <noreply@github.com>2021-10-31 23:17:43 -0700
commit541fd0e9fff0dfc7736b42fb8acefcb70b949fb0 (patch)
tree260c1d008b290be12fdd9ab552acd900c22a131a /include
parent218719cad89fbf17a7feefca7360c9cf5be253be (diff)
parent46d14fdc0ccfbd832a0d154407b64c7a85ad15be (diff)
Merge pull request #184 from notyourav/dd
effects.h and handwritten asm notes
Diffstat (limited to 'include')
-rw-r--r--include/audio.h2
-rw-r--r--include/effects.h118
-rw-r--r--include/functions.h1
-rw-r--r--include/main.h2
-rw-r--r--include/room.h4
-rw-r--r--include/structures.h6
-rw-r--r--include/tiles.h18
7 files changed, 145 insertions, 6 deletions
diff --git a/include/audio.h b/include/audio.h
index 4f8ecb84..99ccf298 100644
--- a/include/audio.h
+++ b/include/audio.h
@@ -346,7 +346,7 @@ typedef enum {
SFX_14F,
SFX_150,
SFX_151,
- SFX_152,
+ SFX_NEAR_PORTAL,
SFX_153,
SFX_154,
SFX_155,
diff --git a/include/effects.h b/include/effects.h
new file mode 100644
index 00000000..696ab9ab
--- /dev/null
+++ b/include/effects.h
@@ -0,0 +1,118 @@
+#ifndef EFFECTS_H
+#define EFFECTS_H
+
+#include "entity.h"
+
+typedef enum {
+ FX_FALL_DOWN,
+ FX_EXPLOSION,
+ FX_DEATH,
+ FX_BUSH,
+ FX_ROCK,
+ FX_POT_SHATTER,
+ FX_6,
+ FX_SPARKLE,
+ FX_8,
+ FX_9,
+ FX_A,
+ FX_WATER_SPLASH,
+ FX_LAVA_SPLASH,
+ FX_ICE,
+ FX_ROCK_HUGE,
+ FX_ROCK_SMALL,
+ FX_REFLECT,
+ FX_DASH,
+ FX_BLUE_SPARKLE,
+ FX_RED_BUSH,
+ FX_SPARKLE2,
+ FX_ROCK2,
+ FX_FIRE,
+ FX_GRASS_CUT,
+ FX_18,
+ FX_SWORD_M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FX_5F,
+ FX_60,
+ FX_STONE_BLOCK,
+ FX_62,
+ FX_63,
+ FX_64,
+ FX_65,
+ FX_66,
+ FX_67,
+ FX_68,
+ FX_69,
+ FX_6A,
+ FX_6B,
+ FX_6C,
+} Effect;
+
+#endif // EFFECTS_H \ No newline at end of file
diff --git a/include/functions.h b/include/functions.h
index ad271fa5..662227a4 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -58,6 +58,7 @@ extern void DoExitTransition(ScreenTransitionData*);
extern void CreateDustAt(u32, u32, u32);
extern void PutItemOnSlot(u32 itemID);
extern void CreateSpeechBubbleSleep(Entity*, u32, u32);
+extern u32 CheckPlayerProximity(u32, u32, u32, u32);
// Unidentified
extern u32 sub_0806ED78(Entity*);
diff --git a/include/main.h b/include/main.h
index 679fd35f..0d3643ae 100644
--- a/include/main.h
+++ b/include/main.h
@@ -89,7 +89,7 @@ extern void DoSoftReset(void);
extern void sub_08056260(void);
extern void VBlankIntrWait();
extern void MessageUpdate(void);
-extern void sub_08050154(void);
+extern void UpdateFade(void);
extern u8 gUnk_03003DE4;
diff --git a/include/room.h b/include/room.h
index f34f7297..b030d8e0 100644
--- a/include/room.h
+++ b/include/room.h
@@ -24,7 +24,9 @@ typedef struct {
/*0x0E*/ u8 unk5;
/*0x0F*/ u8 unk6;
/*0x10*/ u8 unk_10;
- /*0x11*/ u8 filler[3];
+ /*0x11*/ s8 oam_offset_x;
+ /*0x12*/ s8 oam_offset_y;
+ /*0x13*/ u8 unk13;
/*0x14*/ u8 screenShakeMagnitude;
/*0x15*/ u8 unk7;
/*0x16*/ u16 screenShakeTime;
diff --git a/include/structures.h b/include/structures.h
index 86962b43..5298e1f5 100644
--- a/include/structures.h
+++ b/include/structures.h
@@ -93,7 +93,7 @@ typedef struct {
u8 field_0x1;
u8 field_0x2;
u8 field_0x3;
- u32 field_0x4;
+ u32 mask;
u16 fadeType; // fade in or out, are there others?
u16 fadeSpeed; // subtracted from duration
u16 fadeDuration;
@@ -103,9 +103,9 @@ typedef struct {
s16 field_0x14;
u16 field_0x16;
u16 field_0x18;
-} struct_03000FD0;
+} FadeControl;
-extern struct_03000FD0 gFadeControl;
+extern FadeControl gFadeControl;
typedef struct {
u8 filler0[0x1A];
diff --git a/include/tiles.h b/include/tiles.h
new file mode 100644
index 00000000..9915face
--- /dev/null
+++ b/include/tiles.h
@@ -0,0 +1,18 @@
+#ifndef TILES_H
+#define TILES_H
+
+typedef enum {
+ CUT_BUSH = 0x1C,
+ CUT_GRASS = 0x1D,
+ CUT_SIGNPOST = 0x1E,
+ CUT_TREE = 0x1F,
+ ROCK = 0x55,
+ CHEST = 0x73,
+ SIGNPOST = 0x176,
+ PERMA_ROCK = 0x1D3,
+ PERMA_ROCK2 = 0x1D4,
+ PERMA_ROCK3 = 0x1D5,
+ PERMA_ROCK4 = 0x1D6,
+} Tile;
+
+#endif // TILES_H