3 ms·
So can I use this for the map in my game or should I look at something else? EDIT: Looks like I can: http://leafletjs.com/examples/crs-simple/crs-simple.html h
by Kiro 10y ago
So can I use this for the map in my game or should I look at something else?
EDIT: Looks like I can: http://leafletjs.com/examples/crs-simple/crs-simple.html http://leafletjs.com/examples/crs-simple/crs-simple.html
Is Leaflet the best option for this though? I just want to show an interactive map on the web of a really big PNG I have (much bigger than the one in that example).
- IshKebab 10y agoI don't think it's really designed for games. It's more for stuff like event maps, theme park maps, office maps, transit maps, etc.
- Kiro 10y agoThanks. What's the difference though? I don't want to show it inside the game. It will be on a separate website.
- Mchl 10y agoPersonally I think it should be great for such use, especially with some improvements version 1.0 has (like the crs-simple) you mention. You will have to split your PNG image into tiles though, and ideally have different zoom levels available too (leaflet won't do that for you, but there are tools floating around)
- davojta 10y agoIt's really possible to use in online web games. I have participated in development of global map in wargaming: https://ru.wargaming.net/globalmap/ https://ru.wargaming.net/globalmap/ . It's turn based strategy for clan leaders in worldoftanks universe.