舰R百科是靠无数自愿编辑者持续地建设更新完善的。编辑非常简单,请勇于更新页面!
编辑入门 | 资助百科 | 留言讨论页 | 微博@舰R百科 | 百科编辑讨论Q群:366818861

微件:Chibi:修订间差异

跳转到导航 跳转到搜索
添加2字节 、​ 2020年7月20日 (星期一)
无编辑摘要
无编辑摘要
无编辑摘要
第13行: 第13行:
         const app = new PIXI.Application({
         const app = new PIXI.Application({
             width:500,
             width:500,
             height:350,
             height:500,
             transparent:true
             transparent:true
         });
         });
第51行: 第51行:


             //设定小人位置
             //设定小人位置
             chibi.x = 250; //小人的基准锚点是脚下附近
             chibi.x = 350; //小人的基准锚点是脚下附近
             chibi.y = 300;  
             chibi.y = 300;  
             chibi.scale.x = 1;  
             chibi.scale.x = 1;  
第67行: 第67行:
             let rectangle = new PIXI.Graphics();
             let rectangle = new PIXI.Graphics();
             rectangle.beginFill(0x000000,0);
             rectangle.beginFill(0x000000,0);
             rectangle.drawRect(75, 0, 350, 350);
             rectangle.drawRect(75, 100, 350, 350);
             rectangle.endFill();
             rectangle.endFill();
             rectangle.x = 0;
             rectangle.x = 0;
18,468

个编辑

导航菜单