Releases: textadventures/squiffy
Squiffy 5.0
v5.0 Update version to 5.0
Squiffy 4.0
v4.0 Update version to 4.0.0
Squiffy 3.0
Bumped up version to coincide with first release of web-based Squiffy editor (source)
One new feature:
- Can now use
@inc
and@dec
with arbitrary values (thanks @caberg)
Squiffy 2.6
- New
--zip
option generates an output.zip file containing the game output. - Various bug fixes.
Squiffy 2.5
Compiler changes:
- You can now specify the script filename when using the
--scriptonly
option.
jQuery plugin changes:
- New
get
andset
methods which can be called from external JavaScript. For example, if the game is running in the element#output
:
// get the "myvalue" attribute from Squiffy
var myvalue = $('#output').squiffy('get', 'myvalue');
// set "myvalue" to 123
$('#output').squiffy('set', 'myvalue', 123);
Squiffy 2.4
Squiffy is now embedded as a jQuery plugin $('#output').squiffy()
.
The plugin accepts the following options:
scroll
(default"body"
) specifies what to scroll after each turn. Can be set to"element"
to scroll the output element instead of the entire document body.persist
(defaulttrue
) specifies whether to save the game state to local storage.restartPrompt
(defaulttrue
) specifies whether to prompt before restarting the game.
There is a new server.js
which accepts an HTTP POST with a Squiffy script file, and responds with the generated JavaScript.
To restart the game, call $('#output').squiffy('restart')
Other changes:
- Squiffy compiler has new
--scriptonly
and--pluginname
options - Squiffy's JavaScript now runs in its own scope
Also from Squiffy 2.3:
- now using jQuery 2.1.3
- removed dependency on jQuery UI
Squiffy 2.2.1
Fixes a problem with Windows line endings.
Squiffy 2.2
Adds a -p (or --port) option to set HTTP server port.
Fixes a bug with named links.
Squiffy 2.1
Adds a -s (or --serve) option to start HTTP server after compiling.
Squiffy 2.0
The Squiffy compiler is now rewritten using Node.js. To install it, install Node and then install the squiffy package from npm globally:
npm install squiffy -g