quizzlesticks / JavascriptGames

0 stars 1 forks source link

Better tilemap SSM compatibility #21

Open quizzlesticks opened 3 years ago

quizzlesticks commented 3 years ago

The spritesheet manager is practically designed to handle tilemaps; thus we should use it for the tilemap. Rather than having all the tiles in separate spritesheets make one big one containing all of them with the same indices as they are defined in MapManager. Then we can just load one tile spritesheet and draw the regions like

ssm.drawSprite("tilemap", region as returned from map.regions[map.delaunay.find(x,y)], ....)