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.gd12
1 files changed, 4 insertions, 8 deletions
diff --git a/demos/2d/platformer/bullet.gd b/demos/2d/platformer/bullet.gd
index 9aacc9809d..f66bca6b24 100644
--- a/demos/2d/platformer/bullet.gd
+++ b/demos/2d/platformer/bullet.gd
@@ -1,21 +1,17 @@
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
-
-