Box2Dxt Platformer
by OXT-Beyond contributors
- Opens or saves files
Plays right here in your browser, boxed in: it cannot reach your files or your computer. How that works.
About this stack
Seven scrolling levels of a platformer built on Box2D: run, double jump, wall jump and dash, ride lifts and rope bridges, stomp the slimes and collect every coin to turn the flag gold. Arrow keys or WASD, Space to jump. New in 1.1: it opens its window when downloaded (1.0 opened hidden).
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.
For xTalk developers: how it is built
- Box2Dxt Platformer (Box2Dxt Platformer.oxtstack): 788 objects, 18252 lines of script
Opens or saves files
- the stack script, line 1432
answer folder "Locate the repo's Spritesheets folder (Cancel = built-in placeholder art):" - the stack script, line 1622
ask file "Save the platformer, with everything it imported, as:" with "box2dxt-platformer.livecode" - the stack script, line 1628
save this stack as tFile - the stack script, line 13116
put URL ("file:" & pXmlPath) into tXml - the stack script, line 13117
if tXml is empty then put URL ("binfile:" & pXmlPath) into tXml - the stack script, line 13524
put URL ("binfile:" & pPath) into tData -- content-load, like the sheets - the stack script, line 14166
put URL ("binfile:" & pPath) into tData - the stack script, line 17202
import audioClip from file pPath - the stack script, line 17255
put specialFolderPath("temporary") & "/b2ktone_" & the milliseconds & "_" & random(99999) & ".wav" into tPath - the stack script, line 17256
put b2kWavWrap(tData) into URL ("binfile:" & tPath) - the stack script, line 17260
import audioClip from file tPath - the stack script, line 17269
delete file tPath
Script it builds as it runs
- send
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 (1.9 MB)
- Unzip the file you get.
- Open Box2Dxt Platformer.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.



