2012年3月8日

引擎初始化过程

摘要: 1.加载jsCC.loadjs = function(filename){ //add the file to the que var script = CC.$new('script'); script.src = CC.CCDir + filename; script.order = CC.loadQue.length; CC.loadQue.push(script); script.onload = function() { //file have finished loading, //if there is more file to load, we sho... 阅读全文

posted @ 2012-03-08 21:00 SeanLin 阅读(442) 评论(0) 推荐(0) 编辑

引擎开发数据记录

摘要: 2012-5-16 Cocos2d-html5关键点:1. 基础功能完成,性能初步优化,准备发布Alpha版本。2. 目前只支持canvas渲染。3. 更高级API封装工作还未开始。-------------------------------------------------------------------------------Language files blank comment code---------------------------------------------------------------------------... 阅读全文

posted @ 2012-03-08 16:54 SeanLin 阅读(547) 评论(0) 推荐(0) 编辑

游戏引擎消息循环机制

摘要: 1. windows,创建循环机制,并不断的从消息池里面去读消息,分发和处理对应的信息。2. iOS,application加入的时候,实现各项方法,系统会自动回调对应的applicationDidEnterBackground,applicationWillEnterForeground函数。触摸消息时间则 是直接分发到对应的EAGLView中,view在appilication创建的时候就要加入并绑定。3. broswers, 也是采用回调的机制,canvas和dom直接注册按键消息处理,当有按键消息,则对于的函数就会被回调。浏览器的状态消息则可以在body中注册,当网页前后台切换的时候, 阅读全文

posted @ 2012-03-08 15:20 SeanLin 阅读(791) 评论(0) 推荐(0) 编辑

导航