[common] fix bullet and tank collision with bricks under bonus
This commit is contained in:
3
WORK.md
3
WORK.md
@@ -1,7 +1,6 @@
|
|||||||
* [bug] (server) **grenade** bonus
|
|
||||||
* [bug] **clock** bonus for spawned tanks
|
* [bug] **clock** bonus for spawned tanks
|
||||||
* [feature] **shovel** bonus with armor bricks
|
* [feature] **shovel** bonus with armor bricks
|
||||||
* [feature] tanks and bullets speed balancing
|
* [feature] tanks and bullets speed balancing
|
||||||
* [bug] record system broken
|
* [bug] record system broken
|
||||||
* [feature] custom map size
|
* [feature] custom map size
|
||||||
* [bug] bullet and tank collision with bricks under bonus
|
* [feature] result frame update (next game select, only human player info)
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ import ru.m.tankz.map.LevelMap;
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (withCollision != null) break;
|
||||||
|
|
||||||
for (other in entities.iterator()) {
|
for (other in entities.iterator()) {
|
||||||
if (other != ent && other != null) {
|
if (other != ent && other != null) {
|
||||||
@@ -120,7 +121,6 @@ import ru.m.tankz.map.LevelMap;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (withCollision != null) break;
|
if (withCollision != null) break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class GameRunner extends Game implements EngineListener {
|
|||||||
}
|
}
|
||||||
gameEventSignal.emit(EventUtil.buildBricksSpawn(engine.map));
|
gameEventSignal.emit(EventUtil.buildBricksSpawn(engine.map));
|
||||||
gameEventSignal.emit(START(state));
|
gameEventSignal.emit(START(state));
|
||||||
//for (i in 0...10) spawnBonus("grenade");
|
//for (i in 0...10) spawnBonus();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function spawn(task:SpawnTask):Void {
|
private function spawn(task:SpawnTask):Void {
|
||||||
|
|||||||
Reference in New Issue
Block a user