we can now trigger events when stepping on tiled rectangular objects. WIP

This commit is contained in:
Piotr 'pwh' Hanusiak
2022-04-07 15:49:58 +02:00
parent 4bd8be89c1
commit 6a394945f3
4 changed files with 364 additions and 341 deletions
+1
View File
@@ -893,6 +893,7 @@ export class GameScene extends DirtyScene {
});
this.gameMap.onEnterZone((zones) => {
console.log("ZONE ENTERED");
for (const zone of zones) {
const focusable = zone.properties?.find((property) => property.name === "focusable");
if (focusable && focusable.value === true) {