Question

I am creating an online football/soccer management game. I want to implement some simple 2d (in future maybe even 3d) graphics engine. For 2d I mean, that every player would be like a circle, view from top. But I am unsure, what technology should i use? I was looking at webgl, but it is unsupported in IE so far. Also I checked HTML5 canvas, but I am not sure it is powerful enough to run this in good framerate. Main priority is that it would run on web browser and that it should be compatible with all major browsers.

Was it helpful?

Solution

If you want 3D, WebGL is the only option. The good news is that WebGL is slated for inclusion in IE11.

If you want 2D, you have options:

  • Canvas.
  • SVG.
  • HTML Elements.

Of these, for most gaming solutions, Canvas is the only sensible option.

But I recommend trying out some JS gaming libraries to deal with the core rendering code, rather than writing it yourself -- it'll save you a lot of time and effort. See here for a list of possible libraries you could try.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top