summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMaciek Baron <1668712+MaciekBaron@users.noreply.github.com>2025-07-03 13:35:42 +0100
committerGitHub <noreply@github.com>2025-07-03 06:35:42 -0600
commit99689a3f70d8cb38178f92b87ecdcdbbdb200429 (patch)
tree031bbf96ac4c1d17b2f6213b1c6f271a71bb8e2d /include
parent7937896598f3df46eb78c158bde787bc4f12ad7f (diff)
Document player alpha (#396)
* Document player alpha * Fix typo * Document further alpha things * Document movement * Fix indentation
Diffstat (limited to 'include')
-rw-r--r--include/common_structs.h2
-rw-r--r--include/defines.h23
2 files changed, 21 insertions, 4 deletions
diff --git a/include/common_structs.h b/include/common_structs.h
index 4450d0e6c..058bb3770 100644
--- a/include/common_structs.h
+++ b/include/common_structs.h
@@ -314,7 +314,7 @@ typedef struct {
/* 0x00C0 */ s16 unk_0C0;
/* 0x00C2 */ s16 unk_0C2;
/* 0x00C4 */ s16 slopeAccel;
- /* 0x00C6 */ s16 unk_0C6;
+ /* 0x00C6 */ s16 alpha;
/* 0x00C8 */ s16 unk_0C8;
/* 0x00CA */ s16 unk_0CA;
/* 0x00CC */ Vec4s unk_0CC;
diff --git a/include/defines.h b/include/defines.h
index 1c176c9bf..5895dc96c 100644
--- a/include/defines.h
+++ b/include/defines.h
@@ -380,6 +380,23 @@ enum PLACE { FIRST_PLACE, SECOND_PLACE, THIRD_PLACE, FOURTH_PLACE };
#define ALPHA_BOO_EFFECT 0x60
/**
+ * @brief durations of effects
+ */
+ #define STAR_EFFECT_DURATION 0xA
+ #define BOO_EFFECT_DURATION 0x7
+
+ /**
+ * @brief alpha related values
+ */
+ #define ALPHA_MAX 0xFF
+ #define ALPHA_MIN 0x0
+ #define ALPHA_BOO_EFFECT 0x60
+
+#define ALPHA_CHANGE_LARGE 8
+#define ALPHA_CHANGE_MEDIUM 4
+#define ALPHA_CHANGE_SMALL 2
+
+/**
* @brief shell state
*
*/
@@ -407,9 +424,9 @@ enum PLACE { FIRST_PLACE, SECOND_PLACE, THIRD_PLACE, FOURTH_PLACE };
#endif // DEFINES_H
/**
- *
+ *
* Laps
- *
+ *
*/
#define MIN_LAPS 0
-#define MAX_LAPS 3 \ No newline at end of file
+#define MAX_LAPS 3