From 1a785420ec47c78ac3f95bd0ece08c819653f6e8 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 19 Nov 2024 23:13:23 +0100 Subject: next commit --- main.tscn | 41 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 5 deletions(-) (limited to 'main.tscn') diff --git a/main.tscn b/main.tscn index c7ff15b..b25da59 100644 --- a/main.tscn +++ b/main.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=7 format=3 uid="uid://b7k6l3bm1f0db"] +[gd_scene load_steps=8 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_rja7k"] +[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"] [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_vv2it"] sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1) @@ -16,7 +17,7 @@ sky = SubResource("Sky_fy05j") tonemap_mode = 2 glow_enabled = true -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2vt34"] +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_cggfi"] [node name="Main" type="Node3D"] script = ExtResource("1_g4bmv") @@ -32,7 +33,37 @@ 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) -script = ExtResource("2_rja7k") +current = true [node name="MeshInstance3D" type="MeshInstance3D" parent="."] -material_override = SubResource("StandardMaterial3D_2vt34") + +[node name="CharacterBody3D" type="CharacterBody3D" parent="."] +transform = Transform3D(-0.0770845, 0, 0.997025, 0, 1, 0, -0.997025, 0, -0.0770845, 0, 238.895, 0) +script = ExtResource("3_tn7lj") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"] +shape = SubResource("CapsuleShape3D_cggfi") + +[node name="CameraAnchor" type="Marker3D" parent="CharacterBody3D"] +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) + +[node name="CanvasLayer" type="CanvasLayer" parent="CharacterBody3D"] + +[node name="CenterContainer" type="CenterContainer" parent="CharacterBody3D/CanvasLayer"] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="TextureRect" type="TextureRect" parent="CharacterBody3D/CanvasLayer/CenterContainer"] +custom_minimum_size = Vector2(16, 16) +layout_mode = 2 +texture = ExtResource("3_7tj3h") +expand_mode = 1 -- cgit v1.2.3