simpleyuji Posted June 11, 2017 Share Posted June 11, 2017 Hi guys. Currently, I've been using tilemaps to render maps, but I was wondering how to create maps like these (https://www.youtube.com/watch?v=QvzXHZdlS1c) in an HTML5 game? If I'm to think of an implementation, I would have each objects such as rocks, walls, trees, fences, buildings, and other blocks saved as individual svg files. Then have the background with all the terrain (dirt, road, hill) be a single large (6400px by 6400px) png file that is predrawn by an artist, use that as base layer, and have a while a player moves, the server sends all objects (i.e trees/fences/buildings) that's within view to the player that hasn't been sent before, which the browser then renders at the appropriate (x,y) location and rotation . Also, a second follow question is if I were to implement a simple top-down map instead like (http://www.simhq.com/wp-content/gallery/door-kickers-killhouse-games/doorkickers-screenshot-005.jpg) , is tiled/tilemaps still the best approach? Link to comment Share on other sites More sharing options...
Recommended Posts