Commit Graph

8 Commits

Author SHA1 Message Date
nmlgc b7ea95836d [Maintenance] [th03/th04/th05] Start a new "essential macros" file
Both player/player.hpp and resident.hpp (in case of TH03's PLAYER_COUNT)
and th04/shared.hpp (in case of TH04/TH05's MAIN_STAGE_COUNT) have way
too much additional stuff that we don't want to include everywhere we
need these constants. So let's try this "no types allowed" approach
instead… maybe that'll work out for once.

Part of P0076, funded by [Anonymous] and -Tom-.
2020-02-23 16:56:15 +01:00
nmlgc ff777a099e [Decompilation] [th03] Add a type for the paletted playchar IDs
Much better than the previous incorrect comment, since the char_id()
method now easily generates the correct sequence of conversion
instructions, seen all throughout the ASM. Even within array
subscripts!

Part of P0076, funded by [Anonymous] and -Tom-.
2020-02-23 16:56:14 +01:00
nmlgc 4bb04abb6f [Reverse-engineering] [th03] Player structure
Completes P0071, funded by KirbyComment and -Tom-.
2020-01-29 09:14:00 +01:00
nmlgc 5ad9d83686 [Reverse-engineering] [th03] Charge Shot function pointers
The _add function pointer is part of the 128-byte player structure,
that's why it's already named differently here 🙃

Part of P0071, funded by KirbyComment and -Tom-.
2020-01-29 09:10:20 +01:00
nmlgc 327021bf16 [Position independence] [th03] Hit combo ring buffer
Completes P0070, funded by KirbyComment.
2020-01-20 22:49:33 +01:00
nmlgc 17cbe2ad62 [Reverse-engineering] [th03] Combo structure
Hey, look, it's a 0FFFFh constant that *doesn't* get RE'd as -1!

Part of P0070, funded by KirbyComment.
2020-01-20 22:49:31 +01:00
nmlgc 9943f2f7ef [Reverse-engineering] [th03] Currently processed player ID
Probably going to refine those `pid_other` variables later; it almost
seems as if there's one to store the attacked player for every entity
type?

Part of P0070, funded by KirbyComment.
2020-01-19 22:11:01 +01:00
nmlgc 8924a4a0aa [Reverse-engineering] [th03] Current score manipulation
Little-endian BCD, again… Far less crazy than in TH04 and TH05,
though, thanks to updating and rendering being two different functions
here.

Part of P0070, funded by KirbyComment.
2020-01-19 22:10:11 +01:00