snake library
Properties
CanvasRenderingContext2D ctx #
CanvasRenderingContext2D ctx = (query("#canvas") as CanvasElement).context2D
Functions
void main() #
void main() { var x = WIDTH/2; var y = HEIGHT/2; Snake snake = new Snake(x, y, 5, 1); snake.init(); }