Saturday, July 05, 2014

The Mapbox Computer Game


Game on With Mapbox and Tilemill is an awesome little demo of how you can create a simple computer game using the Mapbox mapping platform. The game is hosted on Codepen so you can see at a glance how the game works and even use the JavaScript panel to get clues as to how to win the game.

The game world base map tiles were created with Tilemill. The player's character is a marker added to the map. You can move the character marker around by using the 'wasd' keys on your keyboard (use 'e' for action). Collision detection is created by creating a bounding area polygon for the room.

Unfortunately there is only one task involved to complete the game, however this is a great little demo of how you can create a game with Mapbox. All the code is there so you could easily create your own fully functioning computer game with this code and the Mapbox platform.

No comments: