This repository was archived by the owner on Mar 19, 2021. It is now read-only.
Releases: atenfyr/swirl
Releases · atenfyr/swirl
2.1.2
2.1.1
2.1.0
2.0.2
2.0.1
2.0.0
Quick summary of all the huge changes:
- Scripting has been overhauled.
- Documentation is now available on the wiki.
- You can now drag and drop .swirl and .js files onto the window to load them automatically.
I've included an improved version of the game I wrote for the last update which should work with the new functionality. You should be able to load the file by dragging and dropping it onto the window.
1.0.0
Here's a list of changes! You should now be able to make minigames and such if you want. I've included a quick one that I wrote as a swirl file; alternatively, you can view it on the web here. Just touch the object that spawns.
- Specifying a
scriptparameter in the URL or specifying a second line in a swirl file with some JavaScript encoded using a URL-safe version of base64 will cause that script to be ran after loading the save file. In the desktop app, a warning will pop up before a bundled script is ran. Here's a converter that converts some text into the URL-safe variant of Base64 that Swirl uses. - Some new functions! Here's one: tieScript(sprite, callback). When the player touches the sprite in question, the callback is called with the first argument being the sprite. After the callback is called, the script is disabled until the player is out of range. Note that tied scripts are not preserved in save files.
- Here's another new function: registerKey(keycode, allowHolding, callback). The callback is ran without any parameters once the key specified is pressed.
- addNew will now return the sprite that was created.
- Many more internal changes.