summaryrefslogtreecommitdiff
path: root/demos/2d/space_shooter/rail.gd
diff options
context:
space:
mode:
Diffstat (limited to 'demos/2d/space_shooter/rail.gd')
-rw-r--r--demos/2d/space_shooter/rail.gd19
1 files changed, 0 insertions, 19 deletions
diff --git a/demos/2d/space_shooter/rail.gd b/demos/2d/space_shooter/rail.gd
deleted file mode 100644
index 7362dff97d..0000000000
--- a/demos/2d/space_shooter/rail.gd
+++ /dev/null
@@ -1,19 +0,0 @@
-
-extends Node2D
-
-# Member variables
-const SPEED = 200
-var offset = 0
-
-
-func stop():
- set_process(false)
-
-
-func _process(delta):
- offset += delta*SPEED
- set_pos(Vector2(offset, 0))
-
-
-func _ready():
- set_process(true)