summaryrefslogtreecommitdiff
path: root/demos/2d/dynamic_collision_shapes/ball.gd
diff options
context:
space:
mode:
Diffstat (limited to 'demos/2d/dynamic_collision_shapes/ball.gd')
-rw-r--r--demos/2d/dynamic_collision_shapes/ball.gd17
1 files changed, 0 insertions, 17 deletions
diff --git a/demos/2d/dynamic_collision_shapes/ball.gd b/demos/2d/dynamic_collision_shapes/ball.gd
deleted file mode 100644
index 169079ea46..0000000000
--- a/demos/2d/dynamic_collision_shapes/ball.gd
+++ /dev/null
@@ -1,17 +0,0 @@
-
-extends RigidBody2D
-
-# Member variables
-var timeout = 5
-
-
-func _process(delta):
- timeout -= delta
- if (timeout < 1):
- set_opacity(timeout)
- if (timeout < 0):
- queue_free()
-
-
-func _ready():
- set_process(true)