| 赞 | 58  | 
 
| VIP | 37 | 
 
| 好人卡 | 59 | 
 
| 积分 | 12 | 
 
| 经验 | 66255 | 
 
| 最后登录 | 2023-5-29 | 
 
| 在线时间 | 1017 小时 | 
 
 
 
 
 
Lv3.寻梦者 
	- 梦石
 - 0 
 
        - 星屑
 - 1232 
 
        - 在线时间
 - 1017 小时
 
        - 注册时间
 - 2011-4-30
 
        - 帖子
 - 1516
 
 
 
 | 
	
rpg_core.js 文件  
 
class 为  Tilemap  
 
 
相关参数为  
    this.animationCount  
  和  
   this.animationFrame 
 
主要方法  
 
 
//更新 
Tilemap.prototype.update = function() { 
        //动画计数 ++ 
    this.animationCount++; 
    //动画帧 = 数学 向下取整 (   动画计数 / 30  ) 
    this.animationFrame = Math.floor(this.animationCount / 30); 
    //子组 对每一个 方法(子项) 
    this.children.forEach(function(child) { 
            //如果 子项 更新 (子项 更新 存在) 
        if (child.update) { 
                //子项 更新 
            child.update(); 
        } 
    }); 
}; |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |