openNES Snake
Saved games stay in this browser only.
About the game
openNES Snake is the old game of the snake that never stops moving. You steer the head around a walled arena, eat the bugs that appear and grow a little longer with each one. Hit a wall or your own body and the run is over.
The top of the screen shows your score next to the number you need to clear the level, starting at ten on the first level. Reach it and the next level starts with a new arena; there are five in all. The first one is a bare box, the later ones put two bugs on the screen at the same time, and a bug that sits too long uncollected moves somewhere else.
Sebastian Dine wrote the game between 2016 and 2017 as the first of a planned series of open source remakes of classic games for the NES, meant to give newcomers a small complete project to read. That explains the style: it is a short, plain game with no frills, and it does exactly what it promises.
Playing it here
openNES Snake is a homebrew game made for the NES: a new game by an independent developer, not a commercial release. It runs here in jsnes, an NES emulator written in JavaScript. Click Play and press Enter on the title screen.
Enter also pauses and resumes the game. After a game over, Enter starts again. F2 saves the current state in this browser and F4 loads it.
Controls
| Key | NES button | Action |
|---|---|---|
| Arrow keys | Control Pad | turn the snake |
| Enter | Start | start, pause, resume and play again |
| F2 / F4 | — | save / load the state |
A few things worth knowing
The snake starts moving at once. After the level appears the head heads upward on its own, so be ready to turn before it reaches the top wall.
You cannot reverse. Turning straight back into your own body is not allowed, so plan turns two moves ahead.
Leave yourself room. The longer the snake gets, the more of the arena it fills. Move in wide loops and keep an exit open.
Watch the second bug. From level two on there are two bugs around. It is often better to take the nearer one and let the other wait.
FAQ
How many levels are there? Five, each with a higher score to reach: ten, twenty, thirty, forty and fifty.
Is there a high score table? No. The game shows your score when the run ends, and then you can start again.
Why is it called openNES? It is the first project of an open source series the author started to help people learn to program the NES.
Credits and licence
openNES Snake is by Sebastian Dine and is released under the zlib licence. The game uses Shiru's neslib and FamiTone2 libraries, which Shiru released into the public domain, and the cc65 runtime library, also under the zlib licence. The ROM served here is built, without changes, from the source code of the repository at version 1.0.9. The licence file has all the texts.