Attempt to decompile sparksTick

This commit is contained in:
Ryan Dwyer
2020-06-11 17:20:08 +10:00
parent e8b6d07d9d
commit ce42cebbc0
8 changed files with 190 additions and 787 deletions
+2 -2
View File
@@ -131,8 +131,8 @@ extern u32 var8007e4a0;
extern u32 var8007e4a4;
extern struct explosiontype g_ExplosionTypes[NUM_EXPLOSIONTYPES];
extern struct smoketype g_SmokeTypes[NUM_SMOKETYPES];
extern u32 sparktable[];
extern u32 var8007f0b8;
extern struct sparktype g_SparkTypes[];
extern s32 g_SparksAreActive;
extern struct weatherdata *g_WeatherData;
extern s32 var8007f0c4[4];
extern u32 g_RainSpeedExtra;
+3 -5
View File
@@ -689,11 +689,9 @@ extern u32 var800a3440;
extern u32 var800a3444;
extern u32 var800a3448;
extern u32 var800a3488;
extern u32 var800a34d0;
extern u32 var800a3fc0; // likely a count of 800a3fc8
extern struct gvars800a3fc8 var800a3fc8[];
extern struct spark g_Sparks[100];
extern u32 var800a3fc0; // likely a count of g_SparkGroups
extern struct sparkgroup g_SparkGroups[];
extern u32 var800a4130;
extern u32 var800a4154;
extern u32 var800a4158;
+28 -5
View File
@@ -3101,11 +3101,28 @@ struct credit {
u16 text2;
};
struct gvars800a3fc8 {
u32 unk00;
u32 unk04;
u32 unk08;
u32 unk0c;
struct sparktype {
u16 unk00;
s16 unk02;
u16 unk04;
u16 unk06;
u16 unk08;
u16 unk0a;
f32 weight;
u16 maxage;
u16 unk12;
u16 unk14;
u32 unk18;
u32 unk1c;
u32 unk20;
f32 decel;
};
struct sparkgroup {
s32 type;
s32 numsparks;
s32 age;
s32 startindex; // index into g_Sparks
u32 unk10;
u32 unk14;
u32 unk18;
@@ -3113,6 +3130,12 @@ struct gvars800a3fc8 {
u32 unk20;
};
struct spark {
struct coord pos;
struct coord speed;
s32 ttl; // time to live (number of ticks remaining)
};
struct roombitfield {
u8 a : 4;
u8 b : 4;