Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Snake Game

Public visualization

Viewing a saved revision (read-only)

a17acb63e7564cc8b52ff45e42b7b6aa

Snake Game

0 stars0🌍 Public
VVictor Mouries
Last edited Jun 15, 2020
Created on Jun 15, 2020
Forked from HTML Starter

A classic Snake game rendered on an HTML5 Canvas, where a white snake moves continuously across a dark grid, controlled by arrow keys. Each time the snake consumes a randomly placed teal fruit, its score increments and its tail grows. The animation runs via `window.setInterval`, clearing and redrawing the canvas every 250 milliseconds using Canvas 2D API methods like `fillRect` and `clearRect`, with keyboard input handled through a `keydown` event listener.

AI-generated description