camera zoom using scaleManager zooming. WIP

This commit is contained in:
Hanusiak Piotr 2021-12-02 13:20:40 +01:00
parent eb95e2e483
commit ef3a7513e2
6 changed files with 155 additions and 34 deletions

View file

@ -192,6 +192,7 @@ export class GameMap {
const zones = this.tiledObjects.filter(object => object.type === "zone");
// P.H. NOTE: We could also get all of the zones and add properties of occupied tiles to them, so we could later on check collision by using tileKeys
// TODO: Change this to an array with currently occupied sone instead of doing elimination process
const zonesByOldPosition = this.oldPosition ?
zones.filter((zone) => {
if (!this.oldPosition) {