[client] update LevelPopup

This commit is contained in:
2019-04-08 21:45:52 +03:00
parent 13d01293f6
commit 4a4ca463c3
12 changed files with 37 additions and 49 deletions

View File

@@ -27,6 +27,7 @@ class StupidBotControl extends BotControl {
turnRandomTimer = new Timer(2000);
turnRandomTimer.run = calcTurn;
}
shot(1000 + Math.round(Math.random() * 4000));
}
override public function stop():Void {
@@ -37,12 +38,12 @@ class StupidBotControl extends BotControl {
}
}
override private function _shot():Void {
super._shot();
shot(1000 + Math.round(Math.random() * 4000));
}
private function calcTurn():Void {
if (turnTimer != null) {
turnTimer.stop();
turnTimer = null;
}
// ToDo:
if (handler == null || tank == null) return;
var eagle:Eagle = BotHelper.findEagle(playerId.team, handler);
if (eagle != null && Math.random() > 0.5) {

View File

@@ -37,7 +37,7 @@ player:
points:
- {team: human, type: eagle, index: -1, direction: right, x: 12, y: 24}
- {team: human, type: tank, index: 0, direction: top, x: 8, y: 24}
- {team: human, type: tank, index: 1, direction: top, x: 16, y: 24}
#- {team: human, type: tank, index: 1, direction: top, x: 16, y: 24}
- {team: bot, type: tank, index: -1, direction: bottom, x: 0, y: 0}
- {team: bot, type: tank, index: -2, direction: bottom, x: 12, y: 0}
- {team: bot, type: tank, index: -3, direction: bottom, x: 24, y: 0}