Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Risk-like (area-based) maps and HTML/JavaScript

Tags:

javascript

Let's say we have a Risk-like world map which is divided into regions of custom shape.

How does one enable the user to select an individual region using HTML5/JavaScript? I assume Canvas2D is the first step, but then what?

DominateGame

like image 930
Howie Avatar asked Jun 27 '13 15:06

Howie


1 Answers

There are gazillions of great libraries. To name a few:

  • http://d3js.org/
  • http://raphaeljs.com/
  • http://paperjs.org/
  • http://box2d-js.sourceforge.net/
  • http://threejs.org/

Specific examples:

  • http://bl.ocks.org/mbostock/2206590
  • http://raphaeljs.com/world/
  • http://raphaeljs.com/australia.html
like image 121
Alp Avatar answered Oct 07 '22 01:10

Alp