453454455456457458459460461
protected Sprite createPieceSprite (int piece, int px, int py) { if (piece == PIECE_NONE) { return null; } ImageSprite sprite = new ImageSprite(getPieceImage(piece, px, py, NORTH)); sprite.setRenderOrder(-1); return sprite; }