[Reverse-engineering] [th05] Custom entity structure
On the surface, TH05 uses one single 26-byte structure for
• the Stage 2 starfield,
• Alice's puppets,
• curve bullet heads,
• Mai's snowballs and Yuki's fireballs,
• Yumeko's knives,
• and Shinki's 32×32 bullets.
But looking closer, it turns out that the fields of all these have very
different semantics, and in some cases, even different types. uth05win
treated all of those as distinct structures, and we're going to do the
same, merely overlaying the pointers onto the same generic array.
Part of P0078, funded by iruleatgames and -Tom-.
2020-02-25 21:02:44 +00:00
|
|
|
CUSTOM_COUNT = 64
|
|
|
|
|
|
|
|
custom_t struc
|
|
|
|
db 26 dup (?)
|
|
|
|
custom_t ends
|
|
|
|
|
2020-02-26 21:24:36 +00:00
|
|
|
; Stage 2 star particles
|
|
|
|
; ----------------------
|
|
|
|
S2PARTICLE_COUNT = 64
|
|
|
|
S2PARTICLE_W = 16
|
|
|
|
S2PARTICLE_H = 16
|
|
|
|
|
|
|
|
s2particle_t struc
|
|
|
|
flag db ?
|
|
|
|
S2P_angle db ?
|
|
|
|
pos motion_t <?>
|
|
|
|
zoom dw ?
|
|
|
|
dw 5 dup (?)
|
|
|
|
s2particle_t ends
|
|
|
|
|
|
|
|
s2particles equ <_custom_entities>
|
|
|
|
; ----------------------
|
|
|
|
|
[Reverse-engineering] [th05] Custom entity structure
On the surface, TH05 uses one single 26-byte structure for
• the Stage 2 starfield,
• Alice's puppets,
• curve bullet heads,
• Mai's snowballs and Yuki's fireballs,
• Yumeko's knives,
• and Shinki's 32×32 bullets.
But looking closer, it turns out that the fields of all these have very
different semantics, and in some cases, even different types. uth05win
treated all of those as distinct structures, and we're going to do the
same, merely overlaying the pointers onto the same generic array.
Part of P0078, funded by iruleatgames and -Tom-.
2020-02-25 21:02:44 +00:00
|
|
|
public _custom_entities
|