Pixel Platformer Maker
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
Build a platform level, press Play, and see how far you get. Press Learn on the title screen and Astro walks you through your first level. Crates, boulders, barrels and wrecking balls run on real physics from Box2D. 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
- Pixel Maker (Pixel Maker.oxtstack): 2409 objects, 16640 lines of script, with 1 substack
Opens or saves files
- the stack script, line 981
put specialFolderPath("temporary") & "/pixelmaker_" & tTrack & ".wav" into tPath - the stack script, line 983
put the cMusic[tTrack] of stack "Pixel Maker" into url ("binfile:" & tPath) - the stack script, line 1089
start using stack (specialFolderPath("engine") & "/Extensions/box2dxt-kit/box2dxt-kit.livecodescript") - card "Editor" (card 1), line 782
ask file "Save the level as:" with (the cName of me & ".txt") - card "Editor" (card 1), line 784
ask file "Save all levels as:" with "levels.txt" - card "Editor" (card 1), line 796
put tOut into url ("file:" & tPath) - card "Editor" (card 1), line 812
answer file "Open which level file?" - card "Editor" (card 1), line 815
put url ("file:" & tPath) into tText - the stack script, line 5449
put URL ("file:" & pXmlPath) into tXml - the stack script, line 5450
if tXml is empty then put URL ("binfile:" & pXmlPath) into tXml - the stack script, line 5857
put URL ("binfile:" & pPath) into tData -- content-load, like the sheets - the stack script, line 6499
put URL ("binfile:" & pPath) into tData - and 5 more
Runs JavaScript
- the stack script, line 951
do "window.pmTracks=window.pmTracks||{};window.pmTracks['" & pTrack & "']=new Audio('data:audio/wav;base64," & tData & "');window.pmTracks['" & pTrack & "'].loop=true;window.pmTracks['" & pTrack & "'].volume=0.5;" as "JavaScript" - the stack script, line 954
do "window.pmTracks['" & pTrack & "'].play();" as "JavaScript" - the stack script, line 1002
do "if(window.pmTracks)for(var k in window.pmTracks)window.pmTracks[k].pause();" as "JavaScript" - the stack script, line 1108
do "window.pmSfx=window.pmSfx||{};window.pmSfx['" & pName & "']=new Audio('data:audio/wav;base64," & tData & "');" as "JavaScript" - the stack script, line 1111
do "var a=window.pmSfx['" & pName & "'].cloneNode();a.volume=0.7;a.play();window.pmSfxPlayed=(window.pmSfxPlayed||0)+1;" as "JavaScript" - the stack script, line 1124
do "localStorage.setItem('pixelMakerLevels2','" & tData & "');" as "JavaScript" - the stack script, line 1130
do "localStorage.getItem('pixelMakerLevels2')||''" as "JavaScript" - the stack script, line 1152
do "localStorage.removeItem('pixelMakerLevels2');location.reload();" as "JavaScript"
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 (2.0 MB)
- Unzip the file you get.
- Open Pixel Maker.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.


