🚩 start
START
spectacles - sample project
☕ log('based on TWELVE CANNETTES')
🙂 hand
HAND 🗨 "so­ uh"
HAND 🗨 "what do you wanna do?"
⏭ choice

🚩 loop
HAND 🗨 "now what?"
🚩 choice
🎮 game_choice just talk | see a picture -> img_test | listen to some music -> music_test | play a game -> game_test | make a floater -> floater_test | that's it -> end
⏭ $_

🚩 just talk
HAND 🗨 "yeah?"
HAND 🗨 "i can talk in a few different preset ways"
HAND 🗨 "like jig, wvy, rbw, shk, or glw"
HAND 🗨 "or with custom inline styles"
HAND 🗨 "i can also make you wait­ for­­ me­­­ to finish"
☕ log('punctuation characters and ­ will do this')
🚩 just talk 2 🏷 invert
HAND 🗨 "or a whole scene could have a tag"
HAND 🗨 "and everything with the tag could look different"
☕ log('gotta edit the "layouts" in the spectacles css file for this though')
🚩
HAND 🗨 "a scene can also branch mid-conversation"
HAND 🗨 "for example"
☕ variables._ = variables.showBranch ? 'seen branch' : ''
⏭ $_
☕ variables.showBranch = true
HAND 🗨 "you haven't seen this yet"
HAND 🗨 "but next time i'll act as if you have"
⏭ loop

🚩 seen branch
☕ variables.showBranch = false
HAND 🗨 "you've already seen this"
HAND 🗨 "and next time i'll act as if you haven't"
⏭ loop


🚩 img_test
HAND 🗨 "sure. let's take a look"
🙂 frog
HAND 🗨 "bam"
HAND 🗨 "ha­ha"
HAND 🗨 "an image sequence can also end on a loop"
🙂 sequence
HAND 🗨 "like this"
HAND 🗨 "ok that's enough"
🙂 hand
⏭ loop

🚩 music_test
☕ variables.musicText = variables.music ? 'ok i\'ll turn it off' : 'yeah, why not'
HAND 🗨 "$musicText"
☕ variables.music = variables.music ? '' : 'clunker'
🎶 $music
⏭ loop

🚩 game_test
HAND 🗨 "ok. here we go"
🎮 game_pen
☕ log('the game result ends up in a variable named _, so you can get it like this: $_')
☕ variables.response = variables._ ? 'pen' : 'foot'
HAND 🗨 "picked the $response huh"
⏭ loop

🚩 floater_test
HAND 🗨 "check this out"
☕ makeFloater('my-floater', 'img')
☕ post('my-floater', 'floater', { type: 'show', message: { f: 'img', x: 'calc(100% - 256px - 64px)', y: '32px', w: '256px', h: 'calc(100% - 64px)' } })
☕ post('my-floater', 'img', { type: 'img', message: 'hand' })
HAND 🗨 "now i'm over here too"
☕ post('my-floater', 'floater', { type: 'show', message: { f: '' } })
HAND 🗨 "lol"
⏭ loop

🚩 end
HAND 🗨 "oh.. ok"
HAND 🗨 "bye"
🙂
⏳ 1000
RESTART
☕ parent.location.reload();
⏳ 99999999