- 授权协议: 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'}
别怕,Excel VBA其实很简单(第2版)
Excel Home / 北京大学出版社 / 2016-7 / 59.00元
对于大部分没有编程基础的职场人士来说,在学习VBA时往往会有很大的畏难情绪。本书正是针对这样的人群,用浅显易懂的语言和生动形象的比喻,并配合大量插画,对Excel中看似复杂的概念和代码,从简单的宏录制、VBA编程环境和基础语法的介绍,到常用对象的操作与控制、执行程序的自动开关—对象的事件、设计自定义的操作界面、调试与优化编写的代码,都进行了形象的介绍。 本书适合那些希望提高工作效率的职场人士......一起来看看 《别怕,Excel VBA其实很简单(第2版)》 这本书的介绍吧!
