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 a9559806cb..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_fixed_process(false)
-
-
-func _fixed_process(delta):
- offset += delta*SPEED
- set_pos(Vector2(offset, 0))
-
-
-func _ready():
- set_fixed_process(true)