sprig
sprig copied to clipboard
[Sprig App] snake_game
Author name
Author: Tejaji-0
About your game
What is your game about? Guide your hungry snake to gobble up as many apples as possible without hitting the walls or biting its own tail. Each apple you eat makes the snake longer β and surviving longer means scoring higher!
Gameplay Mechanics:
The snake moves automatically in its current direction.
Use W, A, S, D to steer it up, left, down, or right.
Every time the snake eats an apple π, it grows by one block.
If the head collides with a wall or its own body β itβs game over! π
The game tracks your score, which increases by 1 for each apple eaten.
What Makes It Unique:
Features a distinct head sprite that visually separates the head from the body.
Custom-drawn pixel art for the snake, apples, and grass β giving the game a colorful retro-aesthetic vibe.
Chill victory chime every time you snack on an apple.
Built from scratch using the Sprig game engine β simple, smooth, and totally playable right in the browser!
How do you play your game? Run the game in the Sprig editor.
Use the keyboard controls:
W β Move Up
A β Move Left
S β Move Down
D β Move Right
Collect apples π to increase your score.
Avoid running into walls or yourself.
Try to beat your high score and survive as long as you can!
Code
Check off the items that are true.
- [x] The game was made using the Sprig editor.
- [x] The game is placed in the in the
/gamesdirectory. - [x] The code is significantly different from all other games in the Sprig gallery (It has a different scoring mechanism).
- [x] The game runs without errors.
- [x] The name of the file/game contains only alphanumeric characters,
-s, or_s. - [x] The game name is not the same as the others from gallery
- [x] The game has metadata at the top of the file in the following format:
/* @title: @author: @description: @tags: [] @addedOn: 2025-MM-DD */