分析了gibdo源碼,知道它是基於HTML5 Canvas的一個2D縱版遊戲雛形,實現瞭如下特性:git
- A scrolling view window that tracks the player across the game world.
- View limit detection to allow the player to move off the centre of the screen as edges are reached.
- Collision detection.
- Keyboard input.
- Sprite animation.
沒試過其餘引擎,但這個引擎就一個例子就結束了,感受不過癮,還好能夠在github上跟進做者的更新,對我學習仍是夠用了。立馬嘗試實現一個簡單的接球遊戲。一天下來,coffeeScript語法還沒適應過來,JS也不是太熟,嗯,看下語法知識。。。github