Log inGet started
World

PYRAMID — Tower Defense

Branchmain
Branchesmain
Commit82c25f40b2

README.md

pyramid.rules

Every number PYRAMID is played by, in one place: the causeway's waypoints and the arc-length curve through them, the ten build plinths, the three towers and their costs, ranges and damage, the four kinds of the dead and their stats, the eight waves, the stone economy, the fixed camera pose and the palette.

require("pyramid.rules") from anything in the world. It is stateless: it answers where the path is at a distance (pointAt) and hands back the smoothed samples the road mesh is drawn from (pathSamples), so the road drawn and the road walked are the same curve.

pyramid.state holds what moves; this holds what the rules are.