From cfd693938e3e549816c03b56c5a31b13baec0fc3 Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Sun, 16 Jul 2023 21:52:09 +0200 Subject: [PATCH] Minor fixes. --- project.godot | 8 ++++---- scenes/Game.tscn | 12 +++++++++++- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/project.godot b/project.godot index f9b6e9d..cd4dd44 100644 --- a/project.godot +++ b/project.godot @@ -9,17 +9,17 @@ config_version=4 _global_script_classes=[ { -"base": "Reference", +"base": "Node", "class": "ClickableComponent", "language": "GDScript", "path": "res://components/ClickableComponent.gd" }, { -"base": "Reference", +"base": "KinematicBody2D", "class": "CollisionLine", "language": "GDScript", "path": "res://utils/CollisionLine.gd" }, { -"base": "Reference", +"base": "Node", "class": "ColorComponent", "language": "GDScript", "path": "res://components/ColorComponent.gd" @@ -54,7 +54,7 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://utils/SpringDamper.gd" }, { -"base": "Reference", +"base": "Sprite", "class": "TintedSpriteComponent", "language": "GDScript", "path": "res://components/TintedSpriteComponent.gd" diff --git a/scenes/Game.tscn b/scenes/Game.tscn index 48a546d..3411594 100644 --- a/scenes/Game.tscn +++ b/scenes/Game.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=13 format=2] +[gd_scene load_steps=14 format=2] [ext_resource path="res://scenes/StreamContainer.tscn" type="PackedScene" id=1] [ext_resource path="res://entities/Player.tscn" type="PackedScene" id=2] @@ -28,6 +28,8 @@ tracks/0/keys = { "values": [ Vector2( 1, 1 ), Vector2( 2, 2 ), Vector2( 1, 1 ) ] } +[sub_resource type="AnimationNodeStateMachinePlayback" id=26] + [node name="Game" type="Spatial"] script = ExtResource( 9 ) @@ -288,6 +290,12 @@ script = ExtResource( 15 ) [node name="Player" parent="." instance=ExtResource( 2 )] TileWorldNode = NodePath("../TileWorld") +[node name="ToolAttachement" parent="Player/Geometry/Armature/Skeleton" index="5"] +transform = Transform( 1, 8.68458e-08, -1.04308e-07, 1.74623e-07, -1, -1.30385e-07, 1.41561e-07, 1.50874e-07, -1, -0.72, 0.45, 3.28113e-08 ) + +[node name="AnimationTree" parent="Player/Geometry" index="2"] +parameters/playback = SubResource( 26 ) + [node name="Entities" type="Spatial" parent="."] [node name="Chest" parent="Entities" instance=ExtResource( 7 )] @@ -307,4 +315,6 @@ input_ray_pickable = false [connection signal="toggled" from="Generator Container/WorldGeneratorContainer/ShowTexturesCheckButton" to="Generator Container/WorldGeneratorContainer" method="_on_ShowTexturesCheckButton_toggled"] [editable path="TileWorld"] +[editable path="Player"] +[editable path="Player/Geometry"] [editable path="Entities/Chest"]