Version 0.5.0 is now available!


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

Files

choice4genesis-0.5.0-standalone.7z 107 MB
Sep 27, 2022
choice4genesis - v0.5.0 - transpiler.7z 4 MB
Sep 27, 2022
choice4genesis - v0.5.0 - simple demo rom.bin 256 kB
Sep 27, 2022

Get choice4genesis - a ChoiceScript clone for the Sega Genesis

Leave a comment

Log in with itch.io to leave a comment.