无编辑摘要
无编辑摘要 标签:手工回退 |
无编辑摘要 |
||
第27行: | 第27行: | ||
//加载播放器 | //加载播放器 | ||
const app = new PIXI.Application({ | const app = new PIXI.Application({ | ||
width: | width:800, | ||
height: | height:800, | ||
transparent:true | transparent:true | ||
}); | }); | ||
第60行: | 第60行: | ||
//设定小人位置 | //设定小人位置 | ||
chibi.x = | chibi.x = 400; //小人的基准锚点是脚下附近 | ||
chibi.y = 500; | chibi.y = 500; | ||
chibi.scale.x = 1; | chibi.scale.x = 1; | ||
第76行: | 第76行: | ||
rectangle = new PIXI.Graphics(); | rectangle = new PIXI.Graphics(); | ||
rectangle.beginFill(0x00FF00); | rectangle.beginFill(0x00FF00); | ||
rectangle.drawRect(0, 0, | rectangle.drawRect(0, 0, 800, 800); | ||
rectangle.endFill(); | rectangle.endFill(); | ||
rectangle.alpha = 0; | rectangle.alpha = 0; |