mirror of
https://github.com/nmlgc/ReC98.git
synced 2025-02-26 20:55:09 +00:00

"Physics". Not only did ZUN restrict the X velocity to the 5 discrete states of -8, -4, 0, 4, and 8 (because hey, unaligned blitting is slow anyway?), but gravity is also only applied every 5 frames. We're still missing quite a bit of usage code, but these are the core functions. One of which turned out to be undecompilable, due to… a rigorously defined instruction order when performing arithmetic between `double`s and `float`s?! Still, spelling out all this stuff in ASM seems much better than somehow splitting the data segment, just so that we can immediately use literals there. Part of P0097, funded by Ember2528.
14 lines
187 B
C++
14 lines
187 B
C++
/* ReC98
|
|
* -----
|
|
* 2nd part of code segment #1 of TH01's REIIDEN.EXE
|
|
*/
|
|
|
|
#pragma codeseg main_01__TEXT main_01
|
|
|
|
extern "C" {
|
|
#include "ReC98.h"
|
|
|
|
#include "th01/main/player/orb.cpp"
|
|
|
|
}
|