Crossy | Road.gitlab
Full source available in the repository. Run the game manually, or use a simple headless test:
function update() { // Move obstacles, check collisions if (checkCollision(player, obstacles)) { resetGame(); } draw(); requestAnimationFrame(update); } crossy road.gitlab