大约有 1,208 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
Laya_社区(1161) Laya2.0_文档(18) Laya3.0_文档(11) Laya3.0_api(6) Laya2.0_api(5) laya_api(4) Laya_示例(3)
官方文档hello world有错 官方文档那个hello world有错 照着做根本显示不出来hello world 浪费了好几个小时 后来还是在社区里面找了一会才找到的答案 希望官方人员改正下 文档及时更新 纠正 我是新人 考虑了很多最...
来源: Laya_社区 发布时间: 20190112
...e.bgColor = "#232628"; setup(); })(); function setup() { initMatter(); initWorld(); Laya.stage.on("resize", this, onResize); } function initMatter() { var gameWorld = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matt...
来源: Laya_示例 发布时间: 20251130
关于 Matter.js Matter.World.remove 调用 Matter.World.remove 提示异常 "Cannot read property 'World' of undefined" 2018-08-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 呆到八得 赞同来自...
来源: Laya_社区 发布时间: 20180807
...1].position; var canvas = render.canvas; var context = render.context; var world = {minX: -globalWidth, maxX: globalWidth, minY: -globalHeight, maxY: globalWidth}; context.setTransform(1,0,0,1,0,0); context.clearRect(0, 0, canvas.width, canvas.height); //Clamp the camera position to the world bounds...
来源: Laya_社区 发布时间: 20170728
...ter; // module aliases var Engine = Matter.Engine, Render = Matter.Render, World = Matter.World, Bodies = Matter.Bodies; // create an engine var engine = Engine.create(); // engine.world.gravity.y = 0;//关闭重力 // create a renderer var render = Render.create({ element: document.body, engine: en...
来源: Laya_社区 发布时间: 20170905
安装layaAirIDE2 ,跟着官网敲hello world 例子,为什么不显示? 2018-10-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 我是你家的紫薯哥哥啊 赞同来自: Brian_Wale 、斯文 、155***...
来源: Laya_社区 发布时间: 20181015
作为一个新手laya2.2为什么按照教材那样写一个hello world显示不出来 2018-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 赞同来自: 简单 把这些代码写在主函数里就好...
来源: Laya_社区 发布时间: 20180925
按照实例文档写的ts怎么运行不显示hello world 而且ts文件也没有编程js文件 2018-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 kylin 赞同来自: 上传个demo吧 2018-11-08 0 1 分...
来源: Laya_社区 发布时间: 20181108
as hello world 背景还是黑色 as hello world package { import laya.ui.Label; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); Laya.stage.bgColor = "#ffffff"; var sp : Label = new Label("hello world"); //sp.fontSize = 55; sp.pos(100, 100) ; //sp.co...
来源: Laya_社区 发布时间: 20170711
... var Body = Matter.Body; var Bodies = Matter.Bodies; var World = Matter.World; var Constraint = Matter.Constraint; var Mouse = Matter.Mouse; var mouseConstraint; var engine; var world; (function () { // 不支持WebGL...
来源: Laya_社区 发布时间: 20180323