Skip to main content
100%

todo

✓ Published0🌍 Public
11wheel
Last edited Oct 13, 2017
Created on Oct 13, 2017

A simple game rendered on a Canvas element, controlled by clicking the window to launch a magenta square upward against gravity. Obstacles, rendered as green blocks, continuously scroll from right to left; the score increments every frame the player avoids them, and resets upon collision. The game loop uses a custom `d3.timer` to update physics and redraw the canvas, while a separate `div` element displays the score. The code applies basic geometry for collision detection and movement, with the D3.js library handling selection and layout conventions.

AI-generated description

todo

  • add sounds (louder on higher score?)

  • ws sync of bird position and speed and block pos

  • sync render frame code over ws (how? chokdir locally, rsync to sever/chokdir again/ws?)

Similar vizzes