Loading

Loading sources… all files

    Overview

    Snake is the classic arcade game: guide the snake to each piece of food, growing one square longer with every bite. Crashing into a wall, an interior obstacle, or your own body ends the run.

    Before each game, you can choose the movement speed, map size, obstacle layout, and one of four color themes. Every combination of speed, map size, and obstacle count has its own leaderboard, while the theme is purely visual.

    Made by
    wasmga.me

    Controls guide

    Playing

    KeyAction
    Arrow keys/WASDSteer the snake; your first direction press starts the run
    Enter/PPause

    Setup, pause and game over

    KeyAction
    Arrow keysChange the selected option in a row
    TabMove focus to the next row or button
    EnterStart the game, or resume when paused
    ControllerD-pad navigates, A selects, Start begins or resumes

    Cheatsheet

    Setup

    Speed
    Slow (~5 squares/s), Normal (~8 squares/s), or Fast (~10 squares/s)
    Map
    Small (15 × 12), Medium (20 × 16), or Large (30 × 24)
    Obstacles
    None, Some (two horizontal bars), or Many (adds side posts and wall notches)
    Score
    1 point per food pellet eaten

    Tips

    1. The snake turns 90 degrees per step, and the input buffer queues up to two rapid direction presses, letting you execute a tight U-turn with two quick taps.
    2. Because the tip of your tail vacates its square on the same tick your head moves forward, you can safely chase right behind your own tail.
    3. Once the snake grows long, sweep across the board in orderly zigzags rather than cutting straight toward the food, which helps prevent trapping yourself in a closed loop.