Neon Snake
by OXT-Beyond contributors
- Opens or saves files
- Runs JavaScript
Plays right here in your browser, boxed in: it cannot reach your files or your computer. How that works.
About this stack
The classic snake game on a timer loop. Steer with the arrow keys, or swipe on a phone, and see how long you can grow before you run into yourself.
What this stack uses
- Opens or saves files. It keeps things in files. In your browser these stay inside the page and are gone when you close it.
- Runs JavaScript. It runs JavaScript in its own boxed-in page, for example to make sound.
For xTalk developers: how it is built
- Neon Snake (Neon Snake.oxtstack): 67 objects, 917 lines of script, with 1 substack
Opens or saves files
- card id 1002 (card 1), line 391
put specialFolderPath("documents") into tFolder - card id 1002 (card 1), line 393
put specialFolderPath("temporary") & "/oxt-neon-snake" into tFolder - card id 1002 (card 1), line 395
if there is not a folder tFolder then create folder tFolder - card id 1002 (card 1), line 403
put url ("file:" & snScoresPath()) into tScores - card id 1002 (card 1), line 425
put tScores into url ("file:" & snScoresPath()) - card id 1002 (card 1), line 432
put url ("file:" & snScoresPath()) into tScores - card id 1002 (card 1), line 450
put empty into url ("file:" & snScoresPath())
Runs JavaScript
- card id 1002 (card 1), line 374
do "(function(){var w=window,A=w.oxtBeep;" & \
The labels come from the checker, which reads every script without running any of it. Read all the scripts.
Open it in OXT-Beyond
- Download it (29 KB)
- Unzip the file you get.
- Open Neon Snake.oxtstack in OXT-Beyond with File > Open Stack... and change anything you like.
A stack you open on your own computer is no longer boxed in: it can do what any program can. Open stacks only from people you trust, and read the scripts first.



