Nova Rescue
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
A space rescue made for a phone: drag to fly, save the drifting crews, dodge meteors and raiders, and face a mothership every fourth sector. It plays with a mouse and keys too. Art and sounds by Kenney.
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
- Nova Rescue (Nova Rescue.oxtstack): 246 objects, 3400 lines of script
Opens or saves files
- the stack script, line 228
put specialFolderPath("temporary") & "/nova-rescue-kenvector-future.ttf" into tFile - the stack script, line 230
put tData into url ("binfile:" & tFile) - the stack script, line 246
put specialFolderPath("documents") into tFolder - the stack script, line 248
put specialFolderPath("temporary") & "/oxt-nova-rescue" into tFolder - the stack script, line 251
create folder tFolder - the stack script, line 266
put url ("file:" & nrSavePath()) into tText - the stack script, line 305
put tText into url ("file:" & nrSavePath()) - the stack script, line 376
put specialFolderPath("temporary") & "/oxt-nova-rescue-sounds" into sAudioDir - the stack script, line 378
create folder sAudioDir - the stack script, line 382
put tSounds[tName] into url ("binfile:" & sAudioDir & "/" & tName & ".wav")
Runs JavaScript
- the stack script, line 324
do nrAudioScript() as "JavaScript" - the stack script, line 328
do "window.nrAudio.add('" & tName & "','" & tData & "');" as "JavaScript" - the stack script, line 367
do "window.nrAudio.play('" & pName & "'," & pVolume & ");" as "JavaScript" - the stack script, line 423
do "(function(){if(window.nrPageWatch)return;window.nrPageWatch=1;" & \ - the stack script, line 2425
do "(function(){if(typeof window.orientation==='number')return window.orientation;" & \
Script it builds as it runs
- do
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 (665 KB)
- Unzip the file you get.
- Open Nova Rescue.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.



