- Fixed a bug where lambdas were not capturing external local variables properly and would crash
- TileMap converter no longer exports hidden layers
- All tiles’ properties are now merged together in the base layer (including hidden layers), making them easier and faster to access
- Added
scanTileMap({properties:values}, (x, y) => debug('Found match', x, y))
for all platforms (useful for instantiating player/enemies/items/etc) - Implemented support for
for(let key in object)
- Implemented
value = clamp(value, min, max)
-
getWidth(R.tilemap)
andgetHeight(R.tilemap)
return a tilemap’s total dimensions in pixels - Fixed a copy-paste bug in the
abs
function (was returning a negative value for floats) - Implemented
sign(value:number):number;
which returns -1, 0 or 1 - Implemented
hash(str:string):number
which is useful for string tile properties:const isWall = getTileProperty(x, y, 'type') == hash('wall');
1 Like
Great job FManga! I’ll give it a try soon!
3 Likes
it generates native code without a VM or interpreter, uses Monaco (VSCode’s editor), or stores source code in your browser with export options.
I’m excited to share that I’ve been working on something that supports the Meta. A big thanks to @Jicehel for beta testing! It’s still in beta, but it’s stable enough for people to start exploring and creating with it. I can’t wait to hear your feedback!