Posted September 27, 2022 by haroldo-ok
This version adds support for string interpolation.
Now it is possible to use print a numeric variable in the middle of a text line by using ${expression}.
Example code:
* font "damieng.com - Hourglass font.png"
* background "Blue Hedgehog.png"
* create intVar, 1
* create boolVar, true
* temp localInt, 2
* set localInt, intVar + 3
* create playingMusic, false
* choice
* if playingMusic
# Stop the music
* stop music, sound
OK, music is stopped.
* set playingMusic, false
* elseif FALSE
This should not appear
This should not play
* music "Actraiser - Fillmore.vgm"
* else
# Play some music
* music "Actraiser - Fillmore.vgm"
OK, playing Fillmore, from Actraiser.
* set playingMusic, true
# Play a voice
* sound "ready.wav"
OK, playing a digital voice.
# Show a smiley
* image "Smiley.png", at(30, 3)
OK... showing a smiley!
# Fourth choice
This is a test.
Second line.
Third line.
* choice
# Yet another choice
You chose this.
# One more choice
You chose that.
# Increment a number
* set intVar, intVar + 1
The value is now ${intVar}!
# Go to another scene
* goto_scene test