bonkjj st!
This commit is contained in:
parent
dd66cc2a84
commit
7d20cb9bcc
4 changed files with 38 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://djpowg53xsgux"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://djpowg53xsgux"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://by3eww6d7boay" path="res://objects/player/player.gd" id="1_cqmt1"]
|
||||
[ext_resource type="Texture2D" uid="uid://b0myjj8ggu2gt" path="res://assets/graphics/splint.png" id="2_g7ett"]
|
||||
|
|
@ -6,7 +6,6 @@
|
|||
[ext_resource type="Texture2D" uid="uid://dgclvsxcplj81" path="res://assets/graphics/groove.png" id="3_ssrue"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_cqmt1"]
|
||||
radius = 12.0
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ssrue"]
|
||||
length = 0.001
|
||||
|
|
@ -67,10 +66,14 @@ _data = {
|
|||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ssrue"]
|
||||
|
||||
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("_animations")]
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_jnjyq"]
|
||||
radius = 12.0
|
||||
|
||||
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("_animations") groups=["knockable"]]
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_cqmt1")
|
||||
walk_speed = 100.0
|
||||
stun_factor = 200.0
|
||||
_animations = NodePath("AnimationPlayer")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
|
|
@ -99,3 +102,10 @@ texture = ExtResource("3_ssrue")
|
|||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Node/Groove"]
|
||||
shape = SubResource("CircleShape2D_ssrue")
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="Node/Groove"]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Node/Groove/Hitbox"]
|
||||
shape = SubResource("CircleShape2D_jnjyq")
|
||||
|
||||
[connection signal="body_entered" from="Node/Groove/Hitbox" to="Node/Groove" method="_on_hitbox_body_entered"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue