One hand, many games use maps as playground and some are based on a map. On the other hand, OpenLayers is a high-performance, feature-packed library for creating interactive maps on the web.
This project aims to test and add game mechanisms within Openlayers (ol).
It is by no means a complete game or complete game engine but you should find some stuff to devleopp game on a map with Openlayers.
OpenLayers makes it easy to put a dynamic map in any web page.
Here are some of the features I'm working on in this repository.
A hexagonal map or hex map is a game board design commonly used in wargames of all scales. The map is subdivided into a hexagonal tiling, small regular hexagons of identical size.
For more information on Hexagnol grid, I recommend this fabulous Red Blob Games article.
Sprite and Spritesheets have been used in games for a long time.
This include sprite animation and sprite collision detection.
Explosions are an integral part of games. Not that all games need explosions, but they play an important role in the game dynamics.
ol-games is licenced under the French Opensource BSD compatible CeCILL-B FREE SOFTWARE LICENSE.
(c) 2017-2019 - Jean-Marc Viglino
Some resources (mapping services and API) used in this sofware may have a specific license.
You must check before use.
For convenience ol-games is also published under the BSD-3-Clause Licence.