added moving platforms and "collectable" coins and death barrier

This commit is contained in:
2024-09-07 13:13:05 -04:00
parent 709cee6893
commit 1573768619
12 changed files with 282 additions and 19 deletions

View File

@@ -179,12 +179,15 @@ radius = 21.0
height = 182.0
[node name="Tellick" type="CharacterBody2D"]
z_index = 100
collision_layer = 2
script = ExtResource("1_q21sg")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(0, 2)
scale = Vector2(0.2, 0.2)
sprite_frames = SubResource("SpriteFrames_jl8dy")
autoplay = "default"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CapsuleShape2D_aoset")

View File

@@ -1,6 +1,6 @@
extends CharacterBody2D
const SPEED = 300.0
const SPEED = 600.0
const JUMP_VELOCITY = -1000.0
const MAX_JUMP_DURATION = 0.3
const MIN_JUMP_DURATION = 0.01
@@ -46,3 +46,7 @@ func end_jump():
if velocity.y < 0:
velocity.y *= 0.20
is_jumping = false
func _on_kill_zone_body_entered(body: Node2D) -> void:
pass # Replace with function body.