summaryrefslogtreecommitdiff
path: root/demos/3d
diff options
context:
space:
mode:
Diffstat (limited to 'demos/3d')
-rw-r--r--demos/3d/platformer/enemy.gd3
-rw-r--r--demos/3d/platformer/enemy.scnbin37784 -> 38594 bytes
-rw-r--r--demos/3d/platformer/player.gd6
3 files changed, 5 insertions, 4 deletions
diff --git a/demos/3d/platformer/enemy.gd b/demos/3d/platformer/enemy.gd
index cbbb2fe725..9b2e95a96d 100644
--- a/demos/3d/platformer/enemy.gd
+++ b/demos/3d/platformer/enemy.gd
@@ -91,4 +91,5 @@ func _ready():
# Initalization here
pass
-
+func _die():
+ queue_free()
diff --git a/demos/3d/platformer/enemy.scn b/demos/3d/platformer/enemy.scn
index 06d725061d..083582a85a 100644
--- a/demos/3d/platformer/enemy.scn
+++ b/demos/3d/platformer/enemy.scn
Binary files differ
diff --git a/demos/3d/platformer/player.gd b/demos/3d/platformer/player.gd
index 4eeb12e23b..76cf2861bf 100644
--- a/demos/3d/platformer/player.gd
+++ b/demos/3d/platformer/player.gd
@@ -69,9 +69,9 @@ func _integrate_forces( state ):
var lv = state.get_linear_velocity() # linear velocity
var g = state.get_total_gravity()
var delta = state.get_step()
- var d = 1.0 - delta*state.get_total_density()
- if (d<0):
- d=0
+# var d = 1.0 - delta*state.get_total_density()
+# if (d<0):
+# d=0
lv += g * delta #apply gravity
var anim = ANIM_FLOOR