大约有 9 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0035 秒)
...发更高效。class Physics_Physics_CollisionEvent { constructor() { this.count = 7; this.bodys = []; this.touching = []; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya.Sta...
来源: Laya2.0_示例 发布时间: 20240930
...目开发更高效。class Physics_Physics_Tumbler { constructor() { this.count = 0; this.totalBox = 200; Laya.Config.isAntialias = true; Laya.Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable({ gravity: 0 }); Laya.PhysicsDebugDraw.enab...
来源: Laya2.0_示例 发布时间: 20240930
...exture:Texture ;//texture实例,用于放置HtmlCanvas对象 private var count:int=0;//每次截屏,位置x++ private var sp2:Sprite;//用于显示截屏后的纹理 public function LayaAirDemo() { Laya.init(Browser.width, Browser.height);//引擎初始化 Laya.stage.bgColor = "#ffcccc";//背景...
来源: Laya_社区 发布时间: 20170822
移动Sprite时,边缘闪烁 var lastTimestamp = 0; var count = 0; var totale = 0; Laya.timer.frameLoop(1, this, function test() { var deltaTime = new Date().getTime() - lastTimestamp; lastTimestamp = new Date().getTime(); count++; totale += deltaTime; this.x += this.speed_x*deltaTime; this.y += ...
来源: Laya_社区 发布时间: 20170920
...IBQuadrangle不停上涨,长时间玩会引发 throw Error("IBQuadrangle count:"+count+" must<:"+Math.floor(65535 / 4)); 游戏sprite的峰值在500以下,稳定后,基本不会新增对象。 游戏重绘稍微有点高,是因为重绘吗? 2018-07-30 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20180730
...======================= let pbArr = phpContent.match(/public .*?\(/g); let count = (arr ? arr.length : 0) + (pbArr ? pbArr.length : 0); let rate = 0.5; if(count > 5) rate = 0.4; if(count > 10) rate = 0.25; if(count > 20) rate = 0.15; rate *= 0.75 for(var i=LINENUM; i<arr2.length - 1; i++...
来源: Laya_社区 发布时间: 20190613
...06-09 11:48:58.874 1040-1467/? E/WifiStateMachine: good link -> stuck count =0 06-09 11:48:58.874 1040-1467/? E/WifiStateMachine: badRSSI count0 lowRSSI count0 --> score 60 06-09 11:48:58.874 1040-1467/? E/WifiStateMachine: isHighRSSI ---> score=65 06-09 11:48:58.964 1654-165...
来源: Laya_社区 发布时间: 20170609
...o/mp3/sfx_coin_fly.mp3", type: Laya.Loader.SOUND } , { url: "video/mp3/sfx_count_down.mp3", type: Laya.Loader.SOUND } , { url: "video/mp3/sfx_twinkle_edited.mp3", type: Laya.Loader.SOUND } ]; constructor() { // Config.isAlpha = true; //设置画布是否透明,只对2D(WebGL)、3D有效。 Laya.in...
来源: Laya_社区 发布时间: 20171217
...Connection timed out) 2018-11-26 18:32:14.660 2559-4442/? E/Auth: [GoogleAccountDataServiceImpl] getToken() -> NETWORK_ERROR. Account: <ELLIDED:-1860263066>, App: com.android.vending, Service: oauth2:https://www.googleapis.com/auth/voledevice pez: Error when calling server. ...
来源: Laya_社区 发布时间: 20181126