Ember Bricks
by OXT-Beyond contributors
- Uses the internet
- 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 brick breaker for a phone, a tablet or a desktop. Every brick you break heats the ball, and a hot ball scores up to five times as much. Catch the sparks that fall (a wide paddle, more balls, a fireball, bolts, a net) and let the dark ones drop. Twenty-four levels that come round again faster, and an Online Duel for two over the internet: meet in the lobby or swap two codes, each on your own wall, and a hot streak sends your rival trouble.
What this stack uses
- Uses the internet. It gets or sends information over the internet.
- 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
- Ember Bricks (Ember Bricks.oxtstack): 619 objects, 8587 lines of script
Uses the internet
- the stack script, line 4195
put dcLibraryVersion() into tVersion - the stack script, line 4476
put dcCreatePeer(kDuelIce) into tPeer - the stack script, line 4483
put dcCreateChannel(tPeer, "eb") into tChan - the stack script, line 4489
put dcCreateChannelEx(tPeer, "ebs", empty, true, 0, -1, false, -1) into sNet2["fast"] - the stack script, line 4492
put dcSetRemoteDescription(tPeer, pSdp, "offer") into tResult - the stack script, line 4548
put line 1 of dcLastError() into tWhy - the stack script, line 4568
put dcGatheringState(tPeer) is 2 into tDone - the stack script, line 4577
put dcLocalDescription(tPeer) into tSdp - the stack script, line 4863
put dcSetRemoteDescription(sNet2["peer"], tSdp, "answer") into tResult - the stack script, line 4992
dcCleanup - the stack script, line 5005
dcFreePeer tPeer - the stack script, line 5026
dcFreePeer tPeer - and 10 more
Opens or saves files
- the stack script, line 496
put specialFolderPath("temporary") & "/ember-bricks-atkinson-" & toLower(tFace) & ".ttf" into tFile - the stack script, line 498
put tData into url ("binfile:" & tFile) - the stack script, line 586
return specialFolderPath("documents") & "/" & kSaveName - the stack script, line 590
put specialFolderPath("support") into tBase - the stack script, line 592
put specialFolderPath("preferences") into tBase - the stack script, line 594
put specialFolderPath("home") & "/.config" into tBase - the stack script, line 596
create folder tBase - the stack script, line 602
create folder tFolder - the stack script, line 607
put specialFolderPath("temporary") & "/oxt-ember-bricks" into tFolder - the stack script, line 609
create folder tFolder - the stack script, line 626
put url ("file:" & ebSavePath()) into tText - the stack script, line 679
put tText into url ("file:" & ebSavePath()) - and 3 more
Runs JavaScript
- the stack script, line 699
do ebAudioScript() as "JavaScript" - the stack script, line 703
do "window.ebAudio.add('" & tName & "','" & tData & "');" as "JavaScript" - the stack script, line 750
do "window.ebAudio.play('" & pName & "'," & pVolume & ");" as "JavaScript" - the stack script, line 820
do "(function(){if(window.ebPageWatch)return;window.ebPageWatch=1;" & \ - the stack script, line 848
do "document.documentElement.getAttribute('data-mobile-web-filled')?'':(window.innerWidth+','+window.innerHeight)" as "JavaScript" - the stack script, line 4802
do "(function(){var s=null;try{s=document.liveCode.findStackWithName('" & the short name of me & "');}catch(e){}" & \ - the stack script, line 5958
do "(function(){try{var u=new URL(location.href),q=u.searchParams;q.set('duel','" & sLob["code"] & "');" & \ - the stack script, line 5980
do "(function(){try{return new URLSearchParams(location.search).get('duel')||'';}catch(e){return '';}})()" as "JavaScript"
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 (499 KB)
- Unzip the file you get.
- Open Ember Bricks.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.



