Removed dead code
This commit is contained in:
@@ -80,12 +80,6 @@ func _physics_process(delta: float) -> void:
|
|||||||
_update_animation()
|
_update_animation()
|
||||||
|
|
||||||
move_and_slide()
|
move_and_slide()
|
||||||
#var was_collided := move_and_slide()
|
|
||||||
#if was_collided and _is_alive:
|
|
||||||
#for i in range(get_slide_collision_count()): #TODO remove
|
|
||||||
#var collision := get_slide_collision(i)
|
|
||||||
#if _is_killing_collider(collision.get_collider()):
|
|
||||||
#kill()
|
|
||||||
|
|
||||||
|
|
||||||
func _input(event: InputEvent) -> void:
|
func _input(event: InputEvent) -> void:
|
||||||
|
|||||||
@@ -7,6 +7,10 @@
|
|||||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_xln5q"]
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_xln5q"]
|
||||||
radius = 4.0
|
radius = 4.0
|
||||||
|
|
||||||
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_t6gq4"]
|
||||||
|
radius = 2.0
|
||||||
|
height = 15.0
|
||||||
|
|
||||||
[node name="Player" type="CharacterBody2D" unique_id=508706417]
|
[node name="Player" type="CharacterBody2D" unique_id=508706417]
|
||||||
collision_layer = 128
|
collision_layer = 128
|
||||||
collision_mask = 33
|
collision_mask = 33
|
||||||
@@ -37,5 +41,10 @@ one_shot = true
|
|||||||
wait_time = 0.1
|
wait_time = 0.1
|
||||||
one_shot = true
|
one_shot = true
|
||||||
|
|
||||||
|
[node name="CenterArea2D" type="Area2D" parent="." unique_id=490866430]
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CenterArea2D" unique_id=1350886064]
|
||||||
|
shape = SubResource("CapsuleShape2D_t6gq4")
|
||||||
|
|
||||||
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]
|
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]
|
||||||
[connection signal="animation_looped" from="AnimatedSprite2D" to="." method="_on_animation_looped"]
|
[connection signal="animation_looped" from="AnimatedSprite2D" to="." method="_on_animation_looped"]
|
||||||
|
|||||||
Reference in New Issue
Block a user