summaryrefslogtreecommitdiff
path: root/demos/2d/isometric_light/shoot.gd
diff options
context:
space:
mode:
Diffstat (limited to 'demos/2d/isometric_light/shoot.gd')
-rw-r--r--demos/2d/isometric_light/shoot.gd21
1 files changed, 0 insertions, 21 deletions
diff --git a/demos/2d/isometric_light/shoot.gd b/demos/2d/isometric_light/shoot.gd
deleted file mode 100644
index b48d4ad34b..0000000000
--- a/demos/2d/isometric_light/shoot.gd
+++ /dev/null
@@ -1,21 +0,0 @@
-
-extends KinematicBody2D
-
-# Member variables
-const ADVANCE_SPEED = 500.0
-
-var advance_dir = Vector2(1, 0)
-var hit = false
-
-
-func _fixed_process(delta):
- if (hit):
- return
- move(advance_dir*delta*ADVANCE_SPEED)
- if (is_colliding()):
- get_node("anim").play("explode")
- hit = true
-
-
-func _ready():
- set_fixed_process(true)