OXT Community Stacks

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

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

  1. Download it (2.0 MB)
  2. Unzip the file you get.
  3. 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.

More stacks to play

See all the stacks