Documentation
¶
Overview ¶
Package host is the program that runs one game: it reads commands on one stream, writes frames on another and paces the engine at its own frame rate. cmd/wittyplay-game-runner wraps it in a process; tests run it directly.
Index ¶
Constants ¶
View Source
const StampBits = 32
StampBits is how many cells the strip has.
Variables ¶
View Source
var StampColours = [][3]byte{{255, 0, 0}, {0, 255, 0}, {0, 0, 255}, {255, 255, 0}, {0, 255, 255}, {255, 0, 255}, {128, 128, 128}, {64, 128, 192}, {192, 96, 48}}
StampColours are the colours drawn, red, green and blue. web/latency.ts has them too.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.