A simple menu (Spelen) with a last-score display starts a 10×13 field
that scales to the viewport, including portrait and landscape phones.
Pointer events drive vertical drag and the manual launch. Flames animate
under gray rocket blocks. After a game over the player returns to the
menu. The view only reads GameCore and never owns the simulation.
Each of the five colors gets its own shape (triangle, circle, square,
diamond, star) so Tim can replace the art later without touching code.
Gray and locked blocks, a four-frame flame strip, a cell background and
a favicon are included. Regenerated with python3 scripts/make-placeholders.py.
48 cases, including jump-height bonuses, carried blocks, a manual jump
capped at the top of the field, a push that forms a new row of three and
re-launches the whole cluster, gray blocks scoring as they leave, and
game over only when every column is locked.
The simulation has no DOM, no renderer and no input devices. It covers
spawn and fall, vertical swapping in a still column, match-3 detection,
linked rocket jumps that carry everything sitting on top, landing with a
three-second settle and recolor, a manual jump that cannot leave the
field, a one-tile push-up that can chain-relaunch a flying cluster,
column lock, game over, and a point for every block that leaves the top.
Gravity, air resistance and mass are data on a planet, with the stage-3
ranges already applied. A vertical match of 3 jumps at 120% of a
horizontal row, and each extra block beyond 3 adds 5%. Launch speed and
deceleration follow from jump height and riseTime so the apex time is
independent of height. Colors and shapes are data-driven. Power and miss
chance are computed for later stages.
Add package.json, .gitignore and src/build.sh (same concatenate-to-build/
pattern as the raytracer). Vendor framework.js so CI does not need to clone
frameworkv3 to produce a playable build/.