Production-ready patterns for Cross-Platform development
Cycle through animation frames with configurable timing. Walk cycles, explosions, idle animations.
Detect newly-pressed buttons, ignoring held inputs. Essential for menus and single-action triggers.
Axis-Aligned Bounding Box collision — fast rectangle overlap test for sprites and objects.
Fractional values without floating point. Essential for smooth movement and physics on 8/16-bit CPUs.
Organise game flow with distinct states (title, playing, game over). Clean separation of game phases.
Linear Feedback Shift Register for fast, deterministic pseudo-random numbers.