分析了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