Support different resolutions

This commit is contained in:
2024-09-01 13:34:59 -07:00
parent 4dd89e2035
commit b0e8ab124a
5 changed files with 20 additions and 19 deletions

View File

@@ -73,6 +73,8 @@ _data = {
"attack": SubResource("Animation_0jjwv")
}
[sub_resource type="BoxShape3D" id="BoxShape3D_wedu3"]
[sub_resource type="SpriteFrames" id="SpriteFrames_ywvvo"]
animations = [{
"frames": [{
@@ -105,8 +107,6 @@ animations = [{
"speed": 12.0
}]
[sub_resource type="BoxShape3D" id="BoxShape3D_wedu3"]
[node name="Player" type="CharacterBody3D"]
collision_layer = 38
collision_mask = 7
@@ -137,13 +137,6 @@ libraries = {
"": SubResource("AnimationLibrary_w8l8m")
}
[node name="SwordSlashAnimation" type="AnimatedSprite2D" parent="."]
unique_name_in_owner = true
position = Vector2(911, 546)
scale = Vector2(9.03192, 6.39623)
sprite_frames = SubResource("SpriteFrames_ywvvo")
animation = &"attack"
[node name="Area3D" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -1)
collision_layer = 16
@@ -153,3 +146,9 @@ collision_mask = 16
unique_name_in_owner = true
shape = SubResource("BoxShape3D_wedu3")
disabled = true
[node name="SwordSlashAnimation" type="AnimatedSprite2D" parent="."]
unique_name_in_owner = true
scale = Vector2(9.03192, 6.39623)
sprite_frames = SubResource("SpriteFrames_ywvvo")
animation = &"attack"