Commit bf179674 authored by Viktor Lidholt's avatar Viktor Lidholt

More precise removal of lasers when they go offscreen in demo game

parent 876fb7b3
......@@ -167,7 +167,7 @@ class Laser extends GameObject {
Laser(GameObjectFactory f, int level, double r) : super(f) {
// Game object properties
radius = 10.0;
removeLimit = 640.0;
removeLimit = _gameSizeHeight + radius;
canDamageShip = false;
canBeDamaged = false;
impact = 1.0 + level * 0.5;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment