Hello,
I’m in a process of developing a bigger game using the OSM data, but first I had to start with something simpler
So, for now we have this “find the nearest train station”. The player is starting in a random city across the world. He can move via the keyboard arrows and have to reach any target.
It is not something big or exciting, but for me it moved me forward in some big directions:
- getting used to the Overpass API - really cryptic syntax for complex queries
- getting used to Mapbox and Leaflet - they are so different from what I know of OpenLayers and Gmap API
- implementing fog of war over tiled map - it is currently not used here here, because it is not really enhancing the gameplay, but at least I found a way of doing it
Some improvements that can be done here:
- add a countdown timer, to make losing a possibility
-
add a way to track high-scores, maybe with a timer?- done in Enemies -
interpret ways with railway=station, currently only nodes tagged as stations are used for destinations- done
I’m open for any remarks and ideas