Minor cleanup.

main
Martin Felis 2024-07-10 22:02:49 +02:00
parent 6fb82d6bac
commit cc00828df1
3 changed files with 184 additions and 167 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=33 format=3 uid="uid://bugqatylloxkl"] [gd_scene load_steps=38 format=3 uid="uid://bugqatylloxkl"]
[ext_resource type="Script" path="res://Player.gd" id="1_3lyis"] [ext_resource type="Script" path="res://Player.gd" id="1_3lyis"]
[ext_resource type="Script" path="res://World.gd" id="1_e417k"] [ext_resource type="Script" path="res://World.gd" id="1_e417k"]
@ -20,6 +20,11 @@
[ext_resource type="PackedScene" uid="uid://dp3fi0g53qrt2" path="res://ui/item_slot.tscn" id="12_v6fpp"] [ext_resource type="PackedScene" uid="uid://dp3fi0g53qrt2" path="res://ui/item_slot.tscn" id="12_v6fpp"]
[ext_resource type="PackedScene" uid="uid://bwui4acukq4x6" path="res://ui/item_grid.tscn" id="15_5xu2a"] [ext_resource type="PackedScene" uid="uid://bwui4acukq4x6" path="res://ui/item_grid.tscn" id="15_5xu2a"]
[ext_resource type="PackedScene" uid="uid://o6d18r0ior12" path="res://assets/scene_props/RockB.tscn" id="17_h8tnl"] [ext_resource type="PackedScene" uid="uid://o6d18r0ior12" path="res://assets/scene_props/RockB.tscn" id="17_h8tnl"]
[ext_resource type="PackedScene" uid="uid://dnobr4inhiskv" path="res://assets/kenney/platformer-kit/Models/GLB format/tree-pine.glb" id="21_5210s"]
[ext_resource type="PackedScene" uid="uid://m4tk7vhjy310" path="res://assets/kenney/platformer-kit/Models/GLB format/tree.glb" id="22_xm4au"]
[ext_resource type="PackedScene" uid="uid://cgde10y3e7w86" path="res://assets/kenney/platformer-kit/Models/GLB format/rocks.glb" id="23_ve8c6"]
[ext_resource type="PackedScene" uid="uid://dg1rtct0vrk3p" path="res://assets/kenney/platformer-kit/Models/GLB format/poles.glb" id="24_a3mo8"]
[ext_resource type="PackedScene" uid="uid://cej0a41nm3eh7" path="res://assets/kenney/platformer-kit/Models/GLB format/mushrooms.glb" id="25_tea3k"]
[sub_resource type="Environment" id="Environment_v85yo"] [sub_resource type="Environment" id="Environment_v85yo"]
ambient_light_color = Color(0.662452, 0.662452, 0.662452, 1) ambient_light_color = Color(0.662452, 0.662452, 0.662452, 1)
@ -659,6 +664,21 @@ theme_override_constants/margin_bottom = 8
layout_mode = 2 layout_mode = 2
text = "Back to Main Menu" text = "Back to Main Menu"
[node name="tree-pine2" parent="." instance=ExtResource("21_5210s")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.754677, 0, 0.0391712)
[node name="tree2" parent="." instance=ExtResource("22_xm4au")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.80764, 0, -3.13532)
[node name="rocks2" parent="." instance=ExtResource("23_ve8c6")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.3817, -4.76837e-07, -3.3938)
[node name="poles2" parent="." instance=ExtResource("24_a3mo8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.921204, 0, -3.30199)
[node name="mushrooms2" parent="." instance=ExtResource("25_tea3k")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.851, 0, 0.798104)
[connection signal="trigger_message" from="World/Player" to="RootUI/GameUI" method="_on_player_trigger_message"] [connection signal="trigger_message" from="World/Player" to="RootUI/GameUI" method="_on_player_trigger_message"]
[connection signal="pressed" from="RootUI/MainMenuUI/MarginContainer/VBoxContainer/MarginContainer/NewGameButton" to="RootUI" method="_on_new_game_button_pressed"] [connection signal="pressed" from="RootUI/MainMenuUI/MarginContainer/VBoxContainer/MarginContainer/NewGameButton" to="RootUI" method="_on_new_game_button_pressed"]
[connection signal="pressed" from="RootUI/MainMenuUI/MarginContainer/VBoxContainer/MarginContainer3/QuitButton" to="RootUI" method="_on_quit_button_pressed"] [connection signal="pressed" from="RootUI/MainMenuUI/MarginContainer/VBoxContainer/MarginContainer3/QuitButton" to="RootUI" method="_on_quit_button_pressed"]

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,7 @@
[gd_scene load_steps=5 format=3 uid="uid://da5r82nvypfk4"] [gd_scene load_steps=4 format=3 uid="uid://da5r82nvypfk4"]
[ext_resource type="Script" path="res://pickup_item.gd" id="1_ec7o8"] [ext_resource type="Script" path="res://pickup_item.gd" id="1_ec7o8"]
[ext_resource type="Resource" uid="uid://dmjr6pmb17l2y" path="res://data/items/woodplanks.tres" id="2_dph0g"] [ext_resource type="Resource" uid="uid://dmjr6pmb17l2y" path="res://data/items/woodplanks.tres" id="2_dph0g"]
[ext_resource type="PackedScene" uid="uid://ysfnsrvgemi6" path="res://assets/resources/WoodPlanks.tscn" id="3_jmgh3"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_1ndog"] [sub_resource type="CylinderShape3D" id="CylinderShape3D_1ndog"]
height = 0.2 height = 0.2
@ -13,8 +12,6 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.00393829, 0)
script = ExtResource("1_ec7o8") script = ExtResource("1_ec7o8")
item = ExtResource("2_dph0g") item = ExtResource("2_dph0g")
[node name="Planks" type="Node3D" parent="." instance=ExtResource("3_jmgh3")]
[node name="Area3D" type="Area3D" parent="."] [node name="Area3D" type="Area3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"] [node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]