summaryrefslogtreecommitdiff
path: root/demos/3d/platformer/coin.gd
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2015-12-09 08:49:06 +0100
committerRémi Verschelde <remi@verschelde.fr>2015-12-09 08:49:06 +0100
commitdb9da152765357c5e484792fc5e31a25acbc7616 (patch)
treef58497abcecc0a74d3d12132f134a5e0b279cc24 /demos/3d/platformer/coin.gd
parentefbb834936fdc9da9789ad37c9cc61e0b90cda95 (diff)
parent52d515b611ed1f593e23b0adabedbd9fd59dc7db (diff)
Merge pull request #2853 from akien-mga/pr-demos-code-formatting
Improve demos code formatting and update to 2.0
Diffstat (limited to 'demos/3d/platformer/coin.gd')
-rw-r--r--demos/3d/platformer/coin.gd18
1 files changed, 3 insertions, 15 deletions
diff --git a/demos/3d/platformer/coin.gd b/demos/3d/platformer/coin.gd
index 8bf1a3460d..bd2eea81e2 100644
--- a/demos/3d/platformer/coin.gd
+++ b/demos/3d/platformer/coin.gd
@@ -1,23 +1,11 @@
extends Area
-# member variables here, example:
-# var a=2
-# var b="textvar"
-
-
+# Member variables
var taken = false
-func _on_coin_body_enter( body ):
+func _on_coin_body_enter(body):
if (not taken and body extends preload("res://player.gd")):
get_node("anim").play("take")
- taken=true
-
-
-func _ready():
- # Initalization here
- pass
-
-
-
+ taken = true