JavaScript

From ETC Public Wiki
Jump to: navigation, search

Using HTML5 canvas to implement the game

Step1:

Basically maintain a game logic and a draw update loop.

Step2:

Using javascript to draw stuff on canvas to do the animation. For detail info, please check the canvas javascript api. Including both vector img and bitmap drawing.

Limitation:

Since javascript engine on mobile browser is much slower than on the PC. The performance maybe not that good in using canvas to do the animation drawing loop.