sgdk-math
Installation
SKILL.md
SGDK Math
Choose the coordinate range, smallest useful fraction and largest intermediate before choosing a type. A wider storage type does not automatically mean a more accurate or safer multiply/divide implementation.
Choose the right reference
- Numbers and arithmetic: SGDK's actual formats, conversions, rounding, overflow and multiply/divide limits.
- Motion and effects: degrees, vectors, aiming, diagonal movement, squared distances, interpolation and bounded tables.
- Math Lab: a runnable perspective starfield and orbit/figure-eight/spiral formations, with controls and a playtest checklist.
Use ewrogers/sgdk:latest and check its inc/maths.h, inc/types.h and
src/maths.c before using an unfamiliar helper. These references were checked
against SGDK 2.11. In particular, current F16_sin/F16_cos take degrees;
deprecated sinFix16 uses a different angle convention.