Now, to finish this post, I'm releasing some of my plugins, which follow the above approach.
- LEVEL PROPERTIES -
Some may remember I released this before, some months ago. But it was a very messy implementation.
Basically, it allows you to set properties, level based. I used to create an "info" entity for this, but I personally find this a cleaner solution.
I'm sure everyone can find a use for this, for example, the number of lives you get in a certain level. The name you want to show upon load, etc.
A little example usage can be found here:
http://www.screenr.com/VkxH
- LABEL TOGGLE -
A simple plugin, which allows you to toggle labels on and off, can be useful.. once in a while.
The default keybind is
L
but you can alter your
config.js
to include a new keybind, the action name is
labels
, example:
'binds': {
'B' : 'labels'
}
- FLOOD FILL -
Something I&
039;ve needed a lot. The default keybind is #F
and actionname is
floodfill
, can be user modified in the same way as labels above.
Important to note: It'll floodfill on the position of your mouse cursor. Not on the position of your first brush tile.
A basic usage of floodfill can be seen here:
http://www.screenr.com/HcxH
There is also an advanced feature, say that you have a couple tiles you want to iterate between. Well, here comes using a multi-tile brush into use.
If you use a brush like [0] [0] [0] [0] [1], it'll randomize in this proportion. So basically, you'll have 20% tile 1, and 80% tile 0, if a random were completely random.
A brush like [0] [1] would give 50% of both, etc. See usage here:
http://www.screenr.com/2cxH
Also note, this plugin works with the undo/redo history. So you can easily undo/fill/undo/fill until you get a randomization you like. Etc.
Does not link with collision layer, yet.
-------------------------------------------------
DOWNLOAD
https://github.com/jeroenverfallie/wm-plugins
INSTALLATION
See first post for more detailed info, but to recap:
1. Comment the two
loader
lines at the bottom of
weltmeister.js
2. Change the
weltmeister.html
file, to use the
loader.js
instead of
weltmeister.js
3. You can enable and disable plugins by modifying the
loader.js
.requires(
'weltmeister.weltmeister',
'weltmeister.plugins.labeltoggle',
'weltmeister.plugins.level-properties',
'weltmeister.plugins.floodfill'
)
Feedback and suggestions welcome.