From 425fa30ed5bf97c05e502c1f18496bce7c05f73c Mon Sep 17 00:00:00 2001 From: Rob Kelly Date: Mon, 29 Sep 2025 12:12:34 -0600 Subject: [PATCH] World & player basics --- addons/format_on_save/format_on_save.gd.uid | 1 + addons/gdlint_plugin/run_linter.gd.uid | 1 + project.godot | 9 ++++++++ src/player/player.tscn | 13 +++++++++++ src/world/world.tscn | 25 +++++++++++++++++++++ 5 files changed, 49 insertions(+) create mode 100644 addons/format_on_save/format_on_save.gd.uid create mode 100644 addons/gdlint_plugin/run_linter.gd.uid create mode 100644 src/player/player.tscn create mode 100644 src/world/world.tscn diff --git a/addons/format_on_save/format_on_save.gd.uid b/addons/format_on_save/format_on_save.gd.uid new file mode 100644 index 0000000..63c4193 --- /dev/null +++ b/addons/format_on_save/format_on_save.gd.uid @@ -0,0 +1 @@ +uid://drvmixm5hd4cv diff --git a/addons/gdlint_plugin/run_linter.gd.uid b/addons/gdlint_plugin/run_linter.gd.uid new file mode 100644 index 0000000..29eaf3d --- /dev/null +++ b/addons/gdlint_plugin/run_linter.gd.uid @@ -0,0 +1 @@ +uid://c4qpamg7w3tpd diff --git a/project.godot b/project.godot index ae2d09c..2eddb43 100644 --- a/project.godot +++ b/project.godot @@ -11,6 +11,7 @@ config_version=5 [application] config/name="Megalith" +run/main_scene="uid://daxngklaqlyba" config/features=PackedStringArray("4.5", "Forward Plus") run/max_fps=60 @@ -38,3 +39,11 @@ movie_writer/movie_file="demos/demo.avi" [editor_plugins] enabled=PackedStringArray("res://addons/format_on_save/plugin.cfg", "res://addons/gdlint_plugin/plugin.cfg") + +[file_customization] + +folder_colors={ +"res://assets/": "red", +"res://src/": "green", +"res://src/world/": "teal" +} diff --git a/src/player/player.tscn b/src/player/player.tscn new file mode 100644 index 0000000..ccca31c --- /dev/null +++ b/src/player/player.tscn @@ -0,0 +1,13 @@ +[gd_scene load_steps=3 format=3 uid="uid://dtbulshrxetes"] + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_qnmj6"] + +[sub_resource type="CapsuleMesh" id="CapsuleMesh_4anbu"] + +[node name="Player" type="CharacterBody3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="."] +shape = SubResource("CapsuleShape3D_qnmj6") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +mesh = SubResource("CapsuleMesh_4anbu") diff --git a/src/world/world.tscn b/src/world/world.tscn new file mode 100644 index 0000000..220894f --- /dev/null +++ b/src/world/world.tscn @@ -0,0 +1,25 @@ +[gd_scene load_steps=5 format=3 uid="uid://daxngklaqlyba"] + +[ext_resource type="PackedScene" uid="uid://dtbulshrxetes" path="res://src/player/player.tscn" id="1_1k4gi"] + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_kueii"] +albedo_color = Color(0.16, 0.16, 0.16, 1) + +[sub_resource type="PlaneMesh" id="PlaneMesh_1k4gi"] +material = SubResource("StandardMaterial3D_kueii") +size = Vector2(16, 16) + +[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_1k4gi"] + +[node name="World" type="Node3D"] + +[node name="Player" parent="." instance=ExtResource("1_1k4gi")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) + +[node name="WorldFloor" type="MeshInstance3D" parent="."] +mesh = SubResource("PlaneMesh_1k4gi") + +[node name="StaticBody3D" type="StaticBody3D" parent="WorldFloor"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="WorldFloor/StaticBody3D"] +shape = SubResource("WorldBoundaryShape3D_1k4gi")