Skip to content

v2.2

Latest
Compare
Choose a tag to compare
@theludovyc theludovyc released this 01 Nov 17:12
· 27 commits to main since this release
bcd975f

Full Changelog: 2.1.1...2.2

What's Changed

Major Updates

like the title says, you can do that now "it is a "really" good one"

You can use assignment operators like: =, +=, -=, *=, /= to assign a value to a variable.
Example: gd.bugs -= 1
We would like to handle expressions for the v2.3 (example: damage = dps + boost + 1)

The big update of this version ! You can now use variables inside any strings, for say, ask, menu, ... and for variables !
Example: player.life_str = "You have <player.life> life points left"

A very important thing: string is replaced with a value when you use/read it, not on assignment.
Example:

player.life = 10
player.life_str = "You have <player.life> life points left"
player.life = 5
narrator "<player.life_str>"

The narrator will say: "You have 5 life points left".

Also, Rakugo.get_variable("<player.life_str>") will return same string: "You have 5 life points left".

We took advantage of this to let you a new Rakugo method replace_variables(text:String).
Example: Rakugo.replace_variables("You have <player.life> life points left"), will return: "You have 5 life points left".

  • fix #52 Rakugo not works on itch.io with firefox

Some time ago Rakugo wasn't working on itch.io with firefox for html5 export, because we use multi-threading feature.
it wasn't handled on this website. It is now resolved !

You can see my old post here https://itch.io/post/5713938, and the main one https://itch.io/t/2025776/experimental-sharedarraybuffer-support.

So you have just one thing to remember when you export now, is to not forget to add your .*rk files ! https://rakugoteam.github.io/rakugo-docs/2.1/export/

Fixed Bugs

Other Changes