Commit Graph

7 Commits

Author SHA1 Message Date
nmlgc 515b4c6315 [Decompilation] [th01] YuugenMagan: Move all data to C land
And that's it! All TH01 bosses fully decompiled, which makes 8 PC-98
Touhou bosses in total with 23 to go! And now, time to move a whole lot
of other data…

Completes P0210, funded by Arandui and Yanga.
2022-08-08 20:15:10 +02:00
nmlgc 988cf64bf3 [Decompilation] [th01] Missiles: Spawn function + Sprite selection by angle
The latter being the dumbest, most decadent piece of FPU abuse in this
game. But it works 🤷

Part of P0202, funded by [Anonymous] and Yanga.
2022-06-25 18:21:08 +02:00
nmlgc b26aaeaee5 [Naming] [th01] Missiles: Spawn function
Even ZUN once preferred nice floating-point syntax for subpixel values,
apparently. Still, `double` is massive overkill here.

Part of P0193, funded by Ember2528.
2022-05-31 22:55:33 +02:00
nmlgc aeb7fb48aa [Decompilation] [th01] Elis: Sprite loading
In which all the declarations expand the C++ code to take up more lines
than the previous compressed ASM representation.

Part of P0166, funded by Ember2528.
2021-11-07 23:14:13 +01:00
nmlgc aaa0ebec92 [Decompilation] [th01] Missiles: Reset function
Due to mixed float/double arithmetic in both of the two remaining
functions, this is all missile code we can meaningfully decompile
right now.

Part of P0165, funded by Ember2528.
2021-11-07 22:54:12 +01:00
nmlgc b4a64324fe [Decompilation] [th01] Missiles: Unput/update/render function
And that's why these feel so awful in-game: Interlaced rendering, and
an unfair 46×46 hitbox around Reimu's center point.

Part of P0165, funded by Ember2528.
2021-11-07 22:52:43 +01:00
nmlgc bce77062c9 [Reverse-engineering] [th01] Missiles: Structure
Another 150 bytes wasted on unused structure members… and if you
already use a SoA layout, you could have also squeezed the flags into 2
bits per entity rather than 8, which would have saved another 37 bytes.

Part of P0165, funded by Ember2528.
2021-11-07 22:51:24 +01:00