From 18fb784e76491a6d2ce91d1a828e8f5181e3da35 Mon Sep 17 00:00:00 2001 From: megaproxy Date: Sun, 10 May 2026 20:19:09 +0100 Subject: [PATCH] Make main scene root Node2D so editor defaults to 2D view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plain 'Node' root causes Godot to open the scene in 3D perspective view because the engine can't infer the intended dimension. Node2D root is the right default for our 2D project; the editor opens in 2D view automatically. Confirmed via MCP get_editor_screenshot — Phase 0 verification was landing in 3D editor view because of this. Co-Authored-By: Claude Opus 4.7 (1M context) --- autoload/audit.gd.uid | 1 + autoload/event_bus.gd.uid | 1 + autoload/game_state.gd.uid | 1 + autoload/save_system.gd.uid | 1 + autoload/sim.gd.uid | 1 + autoload/strings.gd.uid | 1 + autoload/world.gd.uid | 1 + icon.svg.import | 43 +++++++++++++++++++++++++++++++++++++ project.godot | 4 +++- scenes/main/main.gd | 2 +- scenes/main/main.gd.uid | 1 + scenes/main/main.tscn | 2 +- 12 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 autoload/audit.gd.uid create mode 100644 autoload/event_bus.gd.uid create mode 100644 autoload/game_state.gd.uid create mode 100644 autoload/save_system.gd.uid create mode 100644 autoload/sim.gd.uid create mode 100644 autoload/strings.gd.uid create mode 100644 autoload/world.gd.uid create mode 100644 icon.svg.import create mode 100644 scenes/main/main.gd.uid diff --git a/autoload/audit.gd.uid b/autoload/audit.gd.uid new file mode 100644 index 0000000..13a1f4c --- /dev/null +++ b/autoload/audit.gd.uid @@ -0,0 +1 @@ +uid://bg8aa16rbybpi diff --git a/autoload/event_bus.gd.uid b/autoload/event_bus.gd.uid new file mode 100644 index 0000000..b54b043 --- /dev/null +++ b/autoload/event_bus.gd.uid @@ -0,0 +1 @@ +uid://ctrvqkhdok1j diff --git a/autoload/game_state.gd.uid b/autoload/game_state.gd.uid new file mode 100644 index 0000000..7250319 --- /dev/null +++ b/autoload/game_state.gd.uid @@ -0,0 +1 @@ +uid://jrb8yryhh6h3 diff --git a/autoload/save_system.gd.uid b/autoload/save_system.gd.uid new file mode 100644 index 0000000..3c520fe --- /dev/null +++ b/autoload/save_system.gd.uid @@ -0,0 +1 @@ +uid://d0su3fpk4rehc diff --git a/autoload/sim.gd.uid b/autoload/sim.gd.uid new file mode 100644 index 0000000..fbbaec5 --- /dev/null +++ b/autoload/sim.gd.uid @@ -0,0 +1 @@ +uid://dywtof0v8oxws diff --git a/autoload/strings.gd.uid b/autoload/strings.gd.uid new file mode 100644 index 0000000..6bbb8ba --- /dev/null +++ b/autoload/strings.gd.uid @@ -0,0 +1 @@ +uid://dorsdd1xyfulm diff --git a/autoload/world.gd.uid b/autoload/world.gd.uid new file mode 100644 index 0000000..279e7fb --- /dev/null +++ b/autoload/world.gd.uid @@ -0,0 +1 @@ +uid://cwkyfhw1p5b5r diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..772b6cc --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,43 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://lu6tyakt2hgt" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/project.godot b/project.godot index 8cf6cd8..c12bdab 100644 --- a/project.godot +++ b/project.godot @@ -25,13 +25,15 @@ GameState="*res://autoload/game_state.gd" World="*res://autoload/world.gd" Sim="*res://autoload/sim.gd" SaveSystem="*res://autoload/save_system.gd" +MCPScreenshot="*res://addons/godot_mcp/mcp_screenshot_service.gd" +MCPInputService="*res://addons/godot_mcp/mcp_input_service.gd" +MCPGameInspector="*res://addons/godot_mcp/mcp_game_inspector_service.gd" [display] window/size/viewport_width=1280 window/size/viewport_height=720 window/stretch/mode="canvas_items" -window/stretch/aspect="keep" window/handheld/orientation="sensor_landscape" [editor_plugins] diff --git a/scenes/main/main.gd b/scenes/main/main.gd index b421539..9cba44f 100644 --- a/scenes/main/main.gd +++ b/scenes/main/main.gd @@ -1,4 +1,4 @@ -extends Node +extends Node2D ## Phase 0 smoke-test scene root. ## ## Verifies the autoload graph is alive and the i18n table resolves a key. diff --git a/scenes/main/main.gd.uid b/scenes/main/main.gd.uid new file mode 100644 index 0000000..6292d4b --- /dev/null +++ b/scenes/main/main.gd.uid @@ -0,0 +1 @@ +uid://7c64bx5iupge diff --git a/scenes/main/main.tscn b/scenes/main/main.tscn index b6f27a2..c28b028 100644 --- a/scenes/main/main.tscn +++ b/scenes/main/main.tscn @@ -2,7 +2,7 @@ [ext_resource type="Script" path="res://scenes/main/main.gd" id="1_main"] -[node name="Main" type="Node"] +[node name="Main" type="Node2D"] script = ExtResource("1_main") [node name="Camera2D" type="Camera2D" parent="."]