Changed movement to scroll level instead of player, test level now loops. Player also now has weight based inertia

This commit is contained in:
2025-02-17 09:40:31 -05:00
parent 94795e4c77
commit 1abf5b7bce
5 changed files with 124 additions and 9 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=36 format=3 uid="uid://4qv7ygwuks70"]
[gd_scene load_steps=37 format=3 uid="uid://4qv7ygwuks70"]
[ext_resource type="Texture2D" uid="uid://ce5lrej8gpo3i" path="res://Art/Character/Idle/Idle-Sheet.png" id="1_caaw0"]
[ext_resource type="Script" path="res://Characters/player.gd" id="1_mhe8q"]
@ -223,6 +223,9 @@ animations = [{
radius = 8.0
height = 44.0
[sub_resource type="LabelSettings" id="LabelSettings_av1l4"]
font_size = 10
[node name="Player" type="CharacterBody2D"]
script = ExtResource("1_mhe8q")
@ -237,4 +240,12 @@ offset = Vector2(-32, -40)
position = Vector2(0, 2)
shape = SubResource("CapsuleShape2D_4mr7i")
[node name="WeightLabel" type="Label" parent="."]
offset_left = -40.0
offset_top = -41.0
offset_right = 27.0
offset_bottom = -27.0
text = "Weight: "
label_settings = SubResource("LabelSettings_av1l4")
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_finished"]