From 4f731b221bfd2e0c382b77ec06a6ca8b350bcdf5 Mon Sep 17 00:00:00 2001 From: MaddoScientisto Date: Mon, 11 Nov 2024 16:53:28 +0100 Subject: [PATCH] Changes to debug in 4.3 --- .vscode/launch.json | 11 +++++++++++ .vscode/tasks.json | 18 +++++++++--------- Scenes/game.tscn | 5 +---- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 119bdd81..accd90d5 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,6 +1,17 @@ { "version": "2.0.0", "configurations": [ + { + "name": ".NET Core Launch (console)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + "program": "I:/Apps/Godot_v4.3-stable_mono_win64/Godot_v4.3-stable_mono_win64.exe", + "args": [], + "cwd": "${workspaceFolder}", + "stopAtEntry": false, + "console": "internalConsole" + }, { "name": "Play in Editor", "type": "godot-mono", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 07e464d8..030fe0c3 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -3,15 +3,15 @@ "tasks": [ { "label": "build", - "command": "F:/Apps/Godot_v4.2.1-stable_mono_win64/Godot_v4.2.1-stable_mono_win64.exe", - "type": "process", - "args": [ - "--build-solutions", - "--path", - "${workspaceRoot}", - "--no-window", - "-q" - ], + "type": "shell", + "command": "dotnet build ${workspaceFolder}/Cirno.csproj -c Debug -v normal -p:GodotTargetPlatform=windows", + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "reveal": "always" + }, "problemMatcher": "$msCompile" } ] diff --git a/Scenes/game.tscn b/Scenes/game.tscn index 71947d76..902ca158 100644 --- a/Scenes/game.tscn +++ b/Scenes/game.tscn @@ -1,10 +1,9 @@ -[gd_scene load_steps=7 format=3 uid="uid://cwfaxgr8pgfga"] +[gd_scene load_steps=6 format=3 uid="uid://cwfaxgr8pgfga"] [ext_resource type="Script" path="res://Scenes/game.gd" id="1_s0gpj"] [ext_resource type="Script" path="res://Scenes/PixelPerfectRendering.gd" id="2_gdejn"] [ext_resource type="PackedScene" uid="uid://bv451a8wgty4u" path="res://Scenes/test.tscn" id="3_l2ygy"] [ext_resource type="Script" path="res://Scenes/SubViewportSprite.gd" id="4_adb7a"] -[ext_resource type="PackedScene" uid="uid://cio2gclfs7s37" path="res://Scenes/debug_stats.tscn" id="5_ixk64"] [sub_resource type="ViewportTexture" id="ViewportTexture_m5h5j"] viewport_path = NodePath("PixelPerfectRendering/SubViewport") @@ -31,5 +30,3 @@ position = Vector2(960, 540) scale = Vector2(6, 6) texture = SubResource("ViewportTexture_m5h5j") script = ExtResource("4_adb7a") - -[node name="DebugStats" parent="." instance=ExtResource("5_ixk64")]