Replies: 1 comment 1 reply
-
You are definitely right, excalibur-tiled needs an update 😃 I have a branch of excalibur-tiled going that might be close to what you need (hoping to merge soon with the next release of excalibur which will happen as soon as I've finished the collision update PR) Excalibur-Tiled PR excaliburjs/excalibur-tiled#162 (theoretically compatible with the current released version of excalibur if you want to try running it, but to be honest is probably best on latest main) I've added a lot of missing features that folks have been wanting, like working with multiple Tiled layers and Tiled objects with arbitrary data. What do you think of the documented methods in the new proposed readme? Definitely open to more features or tweaks To accomplish the fog of war effect, it might be possible to use another TileMap positioned above the current level, then use semi-transparent/opaque graphics and turn them on and off. This should work without re-adding the TileMap to the scene. We also did a somewhat similar thing to what you're trying to do for LD48 to make diggable dirt given x/y of the cell https://github.com/excaliburjs/ludum-48/blob/main/src/level.ts#L127. Also we used z-indexed TileMaps as backgrounds https://github.com/excaliburjs/ludum-48/blob/8d00d06b3d637f064f7b325429ff7d073958375c/src/background.ts#L6). Maybe you'll be able to repurpose some of this code? Individual cells can be layered by adding graphics in painter order, or individual TileMaps (at least on latest main) can be positioned with z-index to achieve layering in the scene. |
Beta Was this translation helpful? Give feedback.
-
I'm using Excalibur-Tiled in my game to load maps. It has been doing its job pretty decently, though I miss a few features here and there (or at least I don't know where to look if I want to use them, like identifying a cell by its name or type rather than its numerical ID in the tilesheet).
Anyway, the above is unrelated. What I'm trying to do is:
My aim is basically to have a "fog of war" effect and leverage the existing tilemap to do it. But I'm kind of running into a roadblock:
Any tips or methods on how to tackle this? Maybe excalibur-tiled could use some more love? 🙂
Beta Was this translation helpful? Give feedback.
All reactions