frnsys / highrise

building social dynamics simulator
5 stars 2 forks source link

objects generated via the map seem to differ from objects placed by the mouse #13

Closed dantaeyoung closed 7 years ago

dantaeyoung commented 7 years ago

Generating a 'food'-tagged object via the input layout doesn't attract HungryGhosts.. It seems to be because this.adjacentCoords isn't working, which is because World.parseObjects() stores coordinates differently than how mouse-placed objects store coordinates

frnsys commented 7 years ago

whoops, was returning coords as arrays, e.g. [0,0], instead of as objects, e.g. {x: 0, y: 0}. thanks!