Snake Classic Game has no manual difficulty setting. Difficulty increases automatically as your score grows — the higher your score, the faster the snake moves. Speed is governed by the tick interval: the number of milliseconds the game waits between each update cycle. A shorter tick means the snake moves more often per second, leaving you less time to react and plan.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ac-unefm/snake-game/llms.txt
Use this file to discover all available pages before exploring further.
Level formula
Your current level is derived directly from your score:STEP_SCORE = 5, a level-up occurs every 5 points. Level 1 starts the moment a new attempt begins (score = 0) and there is no upper cap on levels — the speed cap is reached at level 8, but the level counter continues climbing.
| Score | Level |
|---|---|
| 0–4 | 1 |
| 5–9 | 2 |
| 10–14 | 3 |
| 15–19 | 4 |
| 20–24 | 5 |
| 25–29 | 6 |
| 30–34 | 7 |
Speed formula
The tick interval for a given score is calculated as:BASE_TICK = 130ms — starting interval at level 1MIN_TICK = 45ms — absolute floor; the game never moves faster than thisSTEP_MS = 12ms — interval reduction per level-up
Speed table
| Level | Tick (ms) | Cells/sec |
|---|---|---|
| 1 | 130 | 7.7 |
| 2 | 118 | 8.5 |
| 3 | 106 | 9.4 |
| 4 | 94 | 10.6 |
| 5 | 82 | 12.2 |
| 6 | 70 | 14.3 |
| 7 | 58 | 17.2 |
| 8 | 46 | 21.7 |
| 8+ | 45 (cap) | 22.2 |
1000 / tick. The value shown for level 8+ (45 ms cap) represents the maximum attainable speed of approximately 22.2 cells per second.
Level-up notification
Every time the snake eats enough food to cross a level boundary, three things happen simultaneously:- HUD colour flash — the level indicator (
LVL: N) in the HUD briefly turns orange for 400 ms, then returns to its normal yellow colour. - Flash message — the status area below the canvas displays
LVL N — ¡MÁS RÁPIDO!for 900 ms before clearing automatically. - Screen-reader announcement —
announceAlert()fires an assertivearia-liveannouncement so assistive technology users receive the same level-up notification: “Nivel N. ¡La velocidad ha aumentado!”
Level 6 and above (tick ≤ 70 ms) is considered expert speed. The absolute minimum tick of 45 ms is reached at level 8.