summaryrefslogtreecommitdiff
path: root/main.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'main.tscn')
-rw-r--r--main.tscn69
1 files changed, 64 insertions, 5 deletions
diff --git a/main.tscn b/main.tscn
index b712365..cd34898 100644
--- a/main.tscn
+++ b/main.tscn
@@ -1,9 +1,11 @@
-[gd_scene load_steps=9 format=3 uid="uid://b7k6l3bm1f0db"]
+[gd_scene load_steps=15 format=3 uid="uid://b7k6l3bm1f0db"]
[ext_resource type="Script" path="res://main.gd" id="1_g4bmv"]
[ext_resource type="Script" path="res://free-look-camera.gd" id="2_4jusq"]
[ext_resource type="Texture2D" uid="uid://dv842eajslxyw" path="res://icon.svg" id="3_7tj3h"]
[ext_resource type="Script" path="res://player.gd" id="3_tn7lj"]
+[ext_resource type="Script" path="res://inventory_bar.gd" id="5_c1toa"]
+[ext_resource type="Texture2D" uid="uid://ld8e4g6oef3x" path="res://Spritesheet.png" id="5_dqy55"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_vv2it"]
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
@@ -19,6 +21,28 @@ tonemap_mode = 2
glow_enabled = true
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_cggfi"]
+radius = 0.45
+height = 1.8
+
+[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_4b324"]
+bg_color = Color(0.18359, 0.18359, 0.18359, 1)
+border_width_left = 4
+border_width_top = 4
+border_width_right = 4
+border_width_bottom = 4
+border_color = Color(0.184314, 0.184314, 0.184314, 1)
+
+[sub_resource type="AtlasTexture" id="AtlasTexture_w53vy"]
+atlas = ExtResource("5_dqy55")
+region = Rect2(0, 0, 80, 80)
+
+[sub_resource type="AtlasTexture" id="AtlasTexture_kv0hd"]
+atlas = ExtResource("5_dqy55")
+region = Rect2(160, 0, 80, 80)
+
+[sub_resource type="AtlasTexture" id="AtlasTexture_46jgo"]
+atlas = ExtResource("5_dqy55")
+region = Rect2(160, 80, 80, 80)
[node name="Main" type="Node3D"]
script = ExtResource("1_g4bmv")
@@ -34,14 +58,12 @@ directional_shadow_max_distance = 400.0
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.767031, 0.64161, 0, -0.64161, 0.767031, 0.387164, 18.7811, 29.7854)
-current = true
script = ExtResource("2_4jusq")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
[node name="CharacterBody3D" type="CharacterBody3D" parent="."]
-process_mode = 4
-transform = Transform3D(-0.0770845, 0, 0.997025, 0, 1, 0, -0.997025, 0, -0.0770845, 0, 238.895, 0)
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 238.895, 2)
script = ExtResource("3_tn7lj")
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
@@ -51,9 +73,10 @@ shape = SubResource("CapsuleShape3D_cggfi")
transform = Transform3D(0.999999, 0, 0, 0, 1, 0, 7.45058e-09, 0, 1, 0, 0.87, 0)
[node name="Camera" type="Camera3D" parent="CharacterBody3D/CameraAnchor"]
+current = true
[node name="RayCast3D" type="RayCast3D" parent="CharacterBody3D/CameraAnchor/Camera"]
-target_position = Vector3(0, 0, -5)
+target_position = Vector3(0, 0, -8)
[node name="CanvasLayer" type="CanvasLayer" parent="CharacterBody3D"]
@@ -69,3 +92,39 @@ custom_minimum_size = Vector2(16, 16)
layout_mode = 2
texture = ExtResource("3_7tj3h")
expand_mode = 1
+
+[node name="MarginContainer" type="MarginContainer" parent="CharacterBody3D/CanvasLayer"]
+anchors_preset = 12
+anchor_top = 1.0
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 0
+theme_override_constants/margin_bottom = 4
+script = ExtResource("5_c1toa")
+
+[node name="CenterContainer" type="CenterContainer" parent="CharacterBody3D/CanvasLayer/MarginContainer"]
+layout_mode = 2
+
+[node name="PanelContainer" type="PanelContainer" parent="CharacterBody3D/CanvasLayer/MarginContainer/CenterContainer"]
+layout_mode = 2
+theme_override_styles/panel = SubResource("StyleBoxFlat_4b324")
+
+[node name="HBoxContainer" type="HBoxContainer" parent="CharacterBody3D/CanvasLayer/MarginContainer/CenterContainer/PanelContainer"]
+layout_mode = 2
+
+[node name="TextureRect" type="TextureButton" parent="CharacterBody3D/CanvasLayer/MarginContainer/CenterContainer/PanelContainer/HBoxContainer"]
+layout_mode = 2
+texture_normal = SubResource("AtlasTexture_w53vy")
+
+[node name="TextureRect2" type="TextureButton" parent="CharacterBody3D/CanvasLayer/MarginContainer/CenterContainer/PanelContainer/HBoxContainer"]
+layout_mode = 2
+texture_normal = SubResource("AtlasTexture_kv0hd")
+
+[node name="TextureRect3" type="TextureButton" parent="CharacterBody3D/CanvasLayer/MarginContainer/CenterContainer/PanelContainer/HBoxContainer"]
+layout_mode = 2
+texture_normal = SubResource("AtlasTexture_46jgo")
+
+[connection signal="pressed" from="CharacterBody3D/CanvasLayer/MarginContainer/CenterContainer/PanelContainer/HBoxContainer/TextureRect" to="CharacterBody3D/CanvasLayer/MarginContainer" method="_on_texture_rect_pressed"]
+[connection signal="pressed" from="CharacterBody3D/CanvasLayer/MarginContainer/CenterContainer/PanelContainer/HBoxContainer/TextureRect2" to="CharacterBody3D/CanvasLayer/MarginContainer" method="_on_texture_rect_2_pressed"]
+[connection signal="pressed" from="CharacterBody3D/CanvasLayer/MarginContainer/CenterContainer/PanelContainer/HBoxContainer/TextureRect3" to="CharacterBody3D/CanvasLayer/MarginContainer" method="_on_texture_rect_3_pressed"]