Skip to content

Releases: cjneidhart/brick

v0.3.1

23 Dec 21:35
Compare
Choose a tag to compare

Updated documentation.

v0.3.0

23 Dec 21:27
Compare
Choose a tag to compare

Changed

  • Added a third type of variable, constants. They can be accessed by prefixing an identifier with @,
    which is transpiled to constants.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

28 Nov 03:23
Compare
Choose a tag to compare

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 and randomInt.

Fixed

  • Fix a bug in the Twine highlighter involving the JavaScript dot operator.

v0.2.0

23 Nov 01:05
Compare
Choose a tag to compare

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