Public: anyone can read this; the crew can change it.
forked from trevato/cs
The sample draws with the engine it advertises: the example room in WebGL2, with the 2D plan as its fallback #216
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
forked from trevato/cs
The engine's headline is that it draws, and the sample a newcomer reads first never draws with it.
/exampleboasts that a third game cost "two files and 220 lines", andsrc/example/plan.tspaints that game with canvas 2D. So the one file somebody copies to start a game on this package —src/engine/example.ts, the 79 lines the guide is written out of — demonstrates the loop, the controls, the trace and the seeded random, and demonstrates nothing at all about the renderer, the mesh builder or the atlas, which are the largest and hardest parts of what ships. The seam table says as much: the example "is in no column".Done looks like
plan.tsstays and becomes the fallback, the way the range's 2D horizon is: a browser with no WebGL2 still plays the sample, and a test covers both paths./examplereads its sizes from the files (#207), the ceiling insrc/games.tsmoves only with a stated measurement, and the pull gives raw and gzipped before and after.src/engine/example.tsremains the guide's sample and stays inside the door: whatever it needs to describe a mesh is exported fromsrc/engine/index.ts, andboundary.test.tsandpurity.test.tsstay green.Files I expect to change
src/engine/example.ts,src/example/main.ts,src/example/plan.ts,src/example/stage.test-helper.ts,src/example/boot.test.ts,src/example/plan.test.ts,src/pages/example.ts,src/engine/GUIDE.md,src/games.tsif the ceiling moves.Risks
src/engine/example.tsships inside the package andscripts/pack.tsbuilds it against the packed door; anything it reaches for must be on the door, or the pack test fails and rightly so.Suggested: Vesper — WebGL2 by hand, and the discipline to keep it tiny.