## Controls

On keyboard, the game is played with the arrow keys.
You can use the `f` key to go fullscreen.
You can also use the `r` key to quickly restart a game.

On mobile or with a touchscreen, the game can be played in 3 modes.
In crosspad mode, the screen is divided into 4 regions, and each one corresponds to a direction.
In joystick mode, the point where you press your finger is the center of a virtual joystick, and moving it will trigger the directions.
In swipe mode, you just swipe to move.

## Game modes

### Speedrun mode

In speedrun mode, the goal is to collect all the fruits as fast as possible.
Attempting to go through the edge of the playfield will kill you.
Each level introduces a new mechanic.

### Arcade

Arcade mode is mostly like the classics.
In arcade mode, you can go through the edge of the playfield and come out on the other side.
Super fruits and decaying fruits may also appear. They are worth 10 and 5 points respectively.

### Timed

Timed mode is a bare-bones mode with a looping playfield.
A timed game only lasts for 30 seconds, and the goal is to get as high a score as possible.

### Survival

In survival mode, the playfield doesn't loop, fruits don't spawn, and you can't win.
This modes get progressively harder, with speed increases, and snake growth.
At first, this process is slow, but it gets faster with time.

### Puzzle mode

In puzzle mode, time doesn't flow until you move.
Weird tiles make their debut, like portals, keys, etc.
Your goal is to get the fruits in as little moves as you can.

## Tiles

- Walls kill you if you touch them
- Fruits give you one point and make you grow. In arcade gamemodes, they also make the game go faster
- Holes kill you if the entire snake is over a hole, or the head and 3 subsequent tiles are over a hole
- Fire kills you if you touch it
- Oil is flammable and will periodically catch on fire, which will kill you. It is otherwise perfectly safe
- Super fruits give you 10 points, and sometimes spawn in arcade mode
- Decaying fruits give you 5 points and sometimes spawn in arcade mode, but they also decay after 2 seconds and disappear
- Portals teleport you to the corresponding portal
- Keys make Doors disappear