X-Git-Url: http://git.purplebirdman.com/frog-ninja.git/blobdiff_plain/a070d33828371b5c36b891f93bd1708f8da1b451..9e5d67d3b7542b4b40f0797f8bc87ca387d5f480:/test.tscn diff --git a/test.tscn b/test.tscn index 272208c..8b52abd 100644 --- a/test.tscn +++ b/test.tscn @@ -1,8 +1,15 @@ -[gd_scene load_steps=10 format=3 uid="uid://cootj2rfyviyb"] +[gd_scene load_steps=14 format=3 uid="uid://cootj2rfyviyb"] [ext_resource type="Script" uid="uid://ccournv7m7l4y" path="res://Scene.gd" id="1_8uh7m"] [ext_resource type="PackedScene" uid="uid://cchu1yltrhuk3" path="res://player/player.tscn" id="1_37kl0"] [ext_resource type="Texture2D" uid="uid://c8cfruu4iw5at" path="res://texture/grid.png" id="2_6uqi0"] +[ext_resource type="Script" uid="uid://dd3sep8kprktl" path="res://ux/debug_overlay.gd" id="2_ykrsh"] +[ext_resource type="Script" uid="uid://mgg7ii0w4vod" path="res://ux/debug_stats.gd" id="3_g14j6"] +[ext_resource type="Script" uid="uid://bocc5xwqtbkbb" path="res://ux/debug_draw_3d.gd" id="4_g14j6"] + +[sub_resource type="Theme" id="Theme_g14j6"] +default_base_scale = 2.0 +default_font_size = 20 [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_37kl0"] sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1) @@ -32,20 +39,45 @@ data = PackedVector3Array(111, 0, 111, -111, 0, 111, 111, 0, -111, -111, 0, 111, [node name="Test" type="Node3D"] script = ExtResource("1_8uh7m") -[node name="WorldEnvironment" type="WorldEnvironment" parent="."] +[node name="debug" type="CanvasLayer" parent="."] +unique_name_in_owner = true +script = ExtResource("2_ykrsh") + +[node name="DebugStats" type="MarginContainer" parent="debug"] +offset_right = 40.0 +offset_bottom = 40.0 +theme = SubResource("Theme_g14j6") +theme_override_constants/margin_left = 20 +theme_override_constants/margin_top = 20 +theme_override_constants/margin_right = 20 +theme_override_constants/margin_bottom = 20 +script = ExtResource("3_g14j6") + +[node name="DebugDraw3D" type="Control" parent="debug"] +layout_mode = 3 +anchors_preset = 0 +offset_right = 40.0 +offset_bottom = 40.0 +script = ExtResource("4_g14j6") + +[node name="Player" parent="." instance=ExtResource("1_37kl0")] +unique_name_in_owner = true + +[node name="map" type="Node3D" parent="."] + +[node name="WorldEnvironment" type="WorldEnvironment" parent="map"] environment = SubResource("Environment_6uqi0") -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] -transform = Transform3D(-0.866023, -0.433016, 0.250001, 0, 0.499998, 0.866027, -0.500003, 0.749999, -0.43301, 0, 0, 0) +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="map"] +transform = Transform3D(-0.866024, -0.433016, 0.250001, 0, 0.499998, 0.866026, -0.500003, 0.749999, -0.43301, 0, 0, 0) shadow_enabled = true -[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +[node name="MeshInstance3D" type="MeshInstance3D" parent="map"] mesh = SubResource("PlaneMesh_mf4mk") +skeleton = NodePath("../..") surface_material_override/0 = SubResource("StandardMaterial3D_37kl0") -[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] +[node name="StaticBody3D" type="StaticBody3D" parent="map/MeshInstance3D"] -[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] +[node name="CollisionShape3D" type="CollisionShape3D" parent="map/MeshInstance3D/StaticBody3D"] shape = SubResource("ConcavePolygonShape3D_37kl0") - -[node name="Player" parent="." instance=ExtResource("1_37kl0")]