src/scripts/Dungeon.js
/*
    * called when going from one floor to another
    */
called when going from one floor to another
called when going from one floor to another
floorChange(oldFloor,newFloor) {
        this.Mapper.createMap(newFloor);
        let map=this.Mapper.allInfo;
        for(var i=map.length-1;i>=0;i--) {
            var room=newFloor.getRoom(map[i].name);
            room.x=map[i].X,room.y=map[i].Y; 
        }
    }
floorChange ( oldFloor , newFloor ) { this . Mapper . createMap ( newFloor ) ; let map = this . Mapper . allInfo ; for ( var i = map . length - 1 ; i >= 0 ; i -- ) { var room = newFloor . getRoom ( map [ i ] . name ) ; room . x = map [ i ] . X , room . y = map [ i ] . Y ; } }
called when going from one floor to another
called when going from one floor to another
//need coordinates for pathfinding