微件:Chibi:修订间差异

添加2字节 、​ 2020年10月15日 (星期四)
无编辑摘要
无编辑摘要
无编辑摘要
第13行: 第13行:
         const app = new PIXI.Application({
         const app = new PIXI.Application({
             width:500,
             width:500,
             height:350,
             height:500,
             transparent:true
             transparent:true
         });
         });
第55行: 第55行:
             //设定小人位置
             //设定小人位置
             chibi.x = 250; //小人的基准锚点是脚下附近
             chibi.x = 250; //小人的基准锚点是脚下附近
             chibi.y = 300;  
             chibi.y = 450;  
             chibi.scale.x = 1;  
             chibi.scale.x = 1;  
             chibi.scale.y = 1;  
             chibi.scale.y = 1;  
第70行: 第70行:
             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;
17,784

个编辑