From bf179674ad73b6be7adb3286fe7410dbc9718db3 Mon Sep 17 00:00:00 2001 From: Viktor Lidholt Date: Thu, 3 Sep 2015 16:13:39 -0700 Subject: [PATCH] More precise removal of lasers when they go offscreen in demo game --- examples/game/lib/game_objects.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/game/lib/game_objects.dart b/examples/game/lib/game_objects.dart index d670eab0b0..f05fa2d6c4 100644 --- a/examples/game/lib/game_objects.dart +++ b/examples/game/lib/game_objects.dart @@ -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;