private void setupInfoBoard(string fileName, int amountInfo) { _infoBoard = new AnimSprite(fileName, amountInfo, 1); AddChild(_infoBoard); _infoBoard.SetXY(600, 125); _infoBoard.alpha = 0.0f; }
private void load2() { BlockBS block1 = new BlockBS("stone3.png", new Vec2(531, 153), true); AddChild(block1); blocks.Add(block1); BlockBS block2 = new BlockBS("stone2V.png", new Vec2(434, 298), false); AddChild(block2); blocks.Add(block2); BlockBS block3 = new BlockBS("stone3V.png", new Vec2(628, 444), false); AddChild(block3); blocks.Add(block3); BlockBS block4 = new BlockBS("stone2.png", new Vec2(191, 444), true); AddChild(block4); blocks.Add(block4); BlockBS block5 = new BlockBS("stone2V.png", new Vec2(240, 590), false); AddChild(block5); blocks.Add(block5); BlockBS block6 = new BlockBS("stone4.png", new Vec2(482, 638), true); AddChild(block6); blocks.Add(block6); _goal = new BlockBS("bigBone.png", new Vec2(240, 347), true); AddChild(_goal); blocks.Add(_goal); bone1 = new Bones("collectBone.png", new Vec2(240, 153), targetPoints[0]); AddChild(bone1); bone1.SetOrigin(bone1.width / 2, bone1.height / 2); bones.Add(bone1); bone2 = new Bones("collectBone.png", new Vec2(531, 347), targetPoints[1]); AddChild(bone2); bone2.SetOrigin(bone2.width / 2, bone2.height / 2); bones.Add(bone2); bone3 = new Bones("collectBone.png", new Vec2(143, 638), targetPoints[2]); AddChild(bone3); bone3.SetOrigin(bone3.width / 2, bone3.height / 2); bones.Add(bone3); _infoBoard = new AnimSprite("INFOmediumBoneslider.png", 3, 1); AddChild(_infoBoard); _infoBoard.alpha = 0.0f; _infoBoard.SetXY(705, 90); }