Implementation of ROT.JS (Roguelike Toolkit) for C3Runtime
basic usage of the rot.js plugin
detect and iterate islands of tiles
test fov functions
Thank you for this, I was a big fan of the original plugin for Construct and this seems even better!
Hello, I started a new game on construct using this addon, so I'm also gonna update it !
Today, a new release a now available. Minifying scripts is now supported (thank you TackerTacker !)
Next release will also add the possibility to output to an array.
Thanks for adding the support for minified scripts :)
This is what I used the plugin for btw. in case you were curious tackertacker.itch.io/dungeon-game-prototype
Hello, I got this error using ROT.JS plugin and Save/Load.
------------------------------------------------------
runtime.js:114 [Construct] Failed to load state from storage: TypeError: Cannot set properties of undefined (setting 'wallCleared')
at RotJsInstance.LoadFromJson (8496761f-b9ad-46fb-ad80-c6ea81157d70:118:26)
at Instance.LoadFromJson (instance.js:36:101)
at ObjectClass._LoadFromJson (objectClass.js:30:470)
at C3Runtime._DoLoadFromJsonString (runtime.js:120:13)
at C3Runtime._DoLoadFromSlot (runtime.js:114:311)
at async C3Runtime._HandleSaveOrLoad (runtime.js:111:52)
at async C3Runtime.Tick (runtime.js:82:175)
Everything is fine without the plugin. A small project with only ROT.JS and a Save/Load action triggers the error.
! EDIT : problem found and solved !
From "instance.js, under c3runtime folder, inside the plugin's .c3addon file
Line 118, last line of "LoadFromJson(o)", there is this :
"this.this.wallCleared = o["wallCleared"];"
That line caused "wallCleared" to be undefined, and should be replaced by this :
"this.wallCleared = o["wallCleared"];"
Now the plugin supports Load again.
Great plugin, unfortunately it doesn't support the minifying of scripts.
[edit]
It would be great if we could output to an array instead of a tilemap.