summaryrefslogtreecommitdiff
path: root/demos/2d/platformer/bullet.gd
diff options
context:
space:
mode:
Diffstat (limited to 'demos/2d/platformer/bullet.gd')
-rw-r--r--demos/2d/platformer/bullet.gd13
1 files changed, 4 insertions, 9 deletions
diff --git a/demos/2d/platformer/bullet.gd b/demos/2d/platformer/bullet.gd
index 9aacc9809d..3aee69714e 100644
--- a/demos/2d/platformer/bullet.gd
+++ b/demos/2d/platformer/bullet.gd
@@ -1,21 +1,16 @@
extends RigidBody2D
-# member variables here, example:
-# var a=2
-# var b="textvar"
+# Member variables
+var disabled = false
-var disabled=false
func disable():
if (disabled):
return
get_node("anim").play("shutdown")
- disabled=true
+ disabled = true
+
func _ready():
- # Initalization here
get_node("Timer").start()
- pass
-
-