32 lines
1 KiB
Text
32 lines
1 KiB
Text
[gd_scene load_steps=5 format=3 uid="uid://snxpqx0ony7s"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/player_movement.gd" id="1_a6lhy"]
|
|
[ext_resource type="Texture2D" uid="uid://qcx482jc7pqr" path="res://textures/player.png" id="2_sscjv"]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_jqi2f"]
|
|
radius = 9.0
|
|
height = 22.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_vxfel"]
|
|
radius = 12.0
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
collision_layer = 4
|
|
collision_mask = 3
|
|
script = ExtResource("1_a6lhy")
|
|
jump_strength = 600
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CapsuleShape2D_jqi2f")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
texture = ExtResource("2_sscjv")
|
|
|
|
[node name="Hurtbox" type="Area2D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox"]
|
|
shape = SubResource("CircleShape2D_vxfel")
|
|
|
|
[connection signal="body_entered" from="Hurtbox" to="." method="_on_hurtbox_body_entered"]
|