我尝试将 16x16 图像加载为FlxSprite
,但我不知道如何使其重复以跨越整个窗口。我该怎么做?
我在哪里加载精灵:
class MainMenuState extends FlxState {
var _menuBg:FlxSprite;
override public function create ():Void {
_menuBg = new FlxSprite(16, 16, 'assets/img/block1_16.png');
add(_menuBg);
super.create();
}
override public function destroy ():Void {
super.destroy();
}
override public function update ():Void {
super.update();
}
}