A GameMaker submarine game with buoyancy, underwater movement, solid obstacles, and spike recovery. Open SurfaceGAME.yyp in GameMaker.
The submarine controller uses frame-time scaling, bounded collision substeps, collision-box room limits, and a brief recovery cooldown. Movement is calibrated to a 60 Hz reference frame, with lag compensation capped to prevent large jumps.
- sub_motion: frame-scaled movement, per-axis collision substeps, sprite-aware room limits.
- sub_resources: oxygen, surface recovery, checkpoints, hull damage, respawn protection, local best scores.
- sub_collectibles: diamond collection, timed chains, score multipliers, and completion bonuses.
- sub_hud: GUI oxygen bar, score/hull/diamond counters, messages, and pause/game-over overlays.
Arrow keys move, C sets a checkpoint at the surface, P pauses, and R restarts the room. Air replenishes near the configured surface line; running out of air or touching spikes damages the hull. Diamonds restore some air, and collecting all room diamonds earns a completion bonus. Collection totals initialize on the first Step so all room objects have completed creation.
python tools/check_resources.pyThe checker verifies registered assets, script files, submarine event registration, and helper references. It is not a GML compiler. Open the project in GameMaker for gameplay, collision-mask, GUI, room-layout, and packaging checks; that runtime is not installed in this workspace.
The implementation uses GameMaker's documented instance collision lookup and instance destruction APIs.