bonkmaykr
@bonkmaykr@canithesis.org
43 following 25 followers
There also doesn't seem to be a clear standard on fixed point math in C++, as simple as it sounds. The same precision or even the same type names are not guaranteed, it's arguably less consistent than floats.
I might use incredibly large integers and then just cut them back down to floats when the renderer draws them (on PC).
@bonkmaykr There's the std::int32_t
types if your target supports them or the alternative bit-fields if you need an odd ball 47 bit sized integer.
I wonder if I can just cheat my way into making Time Falcon use fixed point math by making everything an integer shifted upwards by 16-bits
That's all fixed point math is at the end of the day. You really only need a type to make working with normal numbers easier and to make printing to decimal look right.