void GameTimer_ticActivated(GameTimer obj) { if (obj.CurrentTime == 1) { MainFabrics.createSCV(0, 0); if (multiplay) { secondFabrics.createSCV(0, 0); } } if (!multiplay) { sheepsAppears(); sheepsFires(); moveBullets(); moveSheeps(); } else { moveBullets(); } }
public void createScv() { MainFabrics.createSCV(3, 10); }
void GameTimer_levelUp(GameTimer obj) { if (!multiplay) { currentLevel++; if (currentLevel == 13) { while (activeNaves.Count != 0) { points += activeNaves[0].currentHp; activeNaves[0].hiting(100); } points = points * 10; onSendError("Juego ganado, puntaje: " + points); onWinsGame(); } switch (currentLevel) { case 2: MainBaseNave[0].updateProvavilityAppears(0.3); MainBaseNave[1].updateProvavilityAppears(0.3); break; case 3: MainBaseNave[0].updateProvavilityAppears(0.2); MainBaseNave[1].updateProvavilityAppears(0.2); MainBaseNave[2].updateProvavilityAppears(0.1); break; case 4: MainFabrics.createSCV(0, 0); MainBaseNave[0].updateProvavilityAppears(0.1); MainBaseNave[2].updateProvavilityAppears(0.2); MainBaseNave[3].updateProvavilityAppears(0.1); break; case 5: MainCanon.weapons[0].charge(200); MainCanon.weapons[1].charge(150); MainCanon.weapons[2].charge(100); MainCanon.weapons[3].charge(10); MainFabrics.hiting(0 - 100); MainCanon.hiting(0 - 100); MainMineralMine.extractingMineral(0 - 500); MainFabrics.takeMineral(200); MainBaseNave[0].updateProvavilityAppears(-1); MainBaseNave[1].updateProvavilityAppears(0.1); MainBaseNave[3].updateProvavilityAppears(0.2); MainBaseNave[4].updateProvavilityAppears(0.1); break; case 6: MainFabrics.createSCV(0, 0); MainBaseNave[5].updateProvavilityAppears(0.1); MainBaseNave[2].updateProvavilityAppears(0.1); break; case 7: MainFabrics.createSCV(0, 0); MainBaseNave[0].updateProvavilityAppears(-1); MainBaseNave[1].updateProvavilityAppears(-1); MainBaseNave[2].updateProvavilityAppears(0.1); MainBaseNave[3].updateProvavilityAppears(0.2); MainBaseNave[4].updateProvavilityAppears(0.2); MainBaseNave[5].updateProvavilityAppears(0.2); MainBaseNave[6].updateProvavilityAppears(0.1); break; case 8: MainFabrics.createSCV(0, 0); MainBaseNave[3].updateProvavilityAppears(0.1); MainBaseNave[4].updateProvavilityAppears(0.1); MainBaseNave[6].updateProvavilityAppears(0.2); MainBaseNave[7].updateProvavilityAppears(0.1); break; case 9: MainFabrics.createSCV(0, 0); MainBaseNave[8].updateProvavilityAppears(0.1); MainBaseNave[7].updateProvavilityAppears(0.2); MainBaseNave[2].updateProvavilityAppears(-1); break; case 10: MainFabrics.createSCV(0, 0); MainBaseNave[3].updateProvavilityAppears(-1); MainBaseNave[4].updateProvavilityAppears(0.1); MainBaseNave[5].updateProvavilityAppears(0.1); MainBaseNave[6].updateProvavilityAppears(0.2); MainBaseNave[7].updateProvavilityAppears(0.2); MainBaseNave[8].updateProvavilityAppears(0.2); MainBaseNave[9].updateProvavilityAppears(0.1); break; case 11: MainBaseNave[9].updateProvavilityAppears(0.2); MainBaseNave[5].updateProvavilityAppears(0.1); break; default: MainBaseNave[9].updateProvavilityAppears(0.9); break; } } }