代码语言:javascript 复制 class ItemDisplay extends FlxSpriteGroup { override public function new(posX:Float, posY:Float, itemToShow:Item) { super(); x = posX; y = posY; // create sprites var bckgr:FlxSprite = new FlxSprite(x, y); var itPng:FlxSprite = new FlxSprite(x, y); var...