Releases: cjneidhart/brick
Releases · cjneidhart/brick
v0.3.1
v0.3.0
Changed
- Added a third type of variable, constants. They can be accessed by prefixing an identifier with
@
,
which is transpiled toconstants.NAME
. Constants can only be created or deleted during story startup. - Macros no longer live in a special registry. Now, macros are just methods of the
constants
global value.
v0.2.1
Added
- The
@later
macro for performing operations after a delay. - The
@append
,@prepend
, and@replace
macros for DOM manipulation. - The
@punt
macro to preserve a temporary variable between passages. - The utility functions
either
andrandomInt
.
Fixed
- Fix a bug in the Twine highlighter involving the JavaScript dot operator.
v0.2.0
First release! Here's an incomplete list of features:
- A full markup parser and renderer, including a small selection of built-in macros
- Saves via IndexedDB to improve load times and massively increase storage limits
- Story and temporary variables, which are accessible in markup raw and as macro arguments
- Captured variables (currently just for the
for
macro)
Some likely next steps:
- Exposing more of the API to story authors
- Import/export of saves
- Improved mobile CSS
- More input elements as macros, such as dropdowns
- Automated testing