- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/LanJian/coffee2d
- 软件文档: https://github.com/LanJian/coffee2d
软件介绍
Coffee2D 是一个 HTML5 游戏引擎,它将开发 HTML5 Canvas 游戏中大量的工作抽象出来,例如 CoffeeScript 特性(如 class 关键字)来更好的与游戏和 CoffeeScript 集成。
Coffee2D 当前提供:
简单场景图
精灵渲染
事件处理
动画
Isometric 地图
组件:
class Card extends Component constructor: (@suit, @value) -> super() @setSize(50, 80) # the rectangle will be drawn automatically @addChild new Rect 0, 0, @size.w, @size.h, 'white' update: (dt) -> # dt is delta time passed since last update # (update stuff...) super() draw: (ctx) -> # ctx is the canvas context associated with this scene # (draw additional stuff other than the rectangle...) super()
事件处理:
# event origin is automatically set to unit
unit.dispatchEvent {type: 'kill', target: enemy}
enemy.addListener 'kill', (evt) -> if evt.target == enemy then enemy.die()
# can also fire events from Event class, origin will not be set
Event.dispatchEvent {type: 'init'}
豆瓣,流行的秘密
黄修源 / 机械工业出版社 / 2009-9 / 29.00
380万人为何会齐聚豆瓣? HIN1和SARS是如何传播扩散开的? 贾君鹏何以快速窜红网络? 通过创新扩散的理论的分析和说明,给出了所有这些问题的答案! 这本书从豆瓣的流行现象说开来,应用了创新扩散等传播学道理来解释了豆瓣如何流行起来,同时作者还同时用创新扩散的理论解释了为何会出现世界变平的现象,长尾理论,SARS病毒的高速传播等。 作者以前任豆瓣设计师的身份以自己亲......一起来看看 《豆瓣,流行的秘密》 这本书的介绍吧!
