marrus-sh / jelli

A game engine! Currently being developed.
MIT License
1 stars 0 forks source link

Allow setting of initial variables using `data-var-*` #27

Closed marrus-sh closed 8 years ago

marrus-sh commented 8 years ago

This is a convenience form for declaring them in data-vars and then setting them in the init code. data-vars can be phased out, then. data-var-* should ideally default to 0, but data-var-*="" should give the empty string.

marrus-sh commented 8 years ago

data-vars (and subsequently, data-var) has now been phased out in favour of just declaring all needed variables inside the init function.