微件:Chibi:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
第13行: | 第13行: | ||
const app = new PIXI.Application({ | const app = new PIXI.Application({ | ||
width:500, | width:500, | ||
height: | height:500, | ||
transparent:true | transparent:true | ||
}); | }); | ||
第55行: | 第55行: | ||
//设定小人位置 | //设定小人位置 | ||
chibi.x = 250; //小人的基准锚点是脚下附近 | chibi.x = 250; //小人的基准锚点是脚下附近 | ||
chibi.y = | 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, | rectangle.drawRect(75, 100, 350, 350); | ||
rectangle.endFill(); | rectangle.endFill(); | ||
rectangle.x = 0; | rectangle.x = 0; |