diff --git a/.gitignore b/.gitignore index 4709183..d828712 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ -# Godot 4+ specific ignores -.godot/ +# IDEs +.godot +.vscode/** +!.vsocde/cSpell.json diff --git a/GlobalUsings.cs b/GlobalUsings.cs new file mode 100644 index 0000000..b454275 --- /dev/null +++ b/GlobalUsings.cs @@ -0,0 +1,5 @@ +global using System; +global using System.Collections; +global using System.Collections.Generic; +global using System.Linq; +global using Godot; diff --git a/MemoryEffect.csproj b/MemoryEffect.csproj new file mode 100644 index 0000000..d597eb4 --- /dev/null +++ b/MemoryEffect.csproj @@ -0,0 +1,9 @@ + + + net7.0 + true + enable + $(DefaultItemExcludes);ScriptTemplates\**\*.cs + MemoryEffect + + diff --git a/MemoryEffect.sln b/MemoryEffect.sln new file mode 100644 index 0000000..5a16fe1 --- /dev/null +++ b/MemoryEffect.sln @@ -0,0 +1,19 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MemoryEffect", "MemoryEffect.csproj", "{295DC7CD-C461-4EE6-B3B4-DD2437A6DC58}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + ExportDebug|Any CPU = ExportDebug|Any CPU + ExportRelease|Any CPU = ExportRelease|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {295DC7CD-C461-4EE6-B3B4-DD2437A6DC58}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {295DC7CD-C461-4EE6-B3B4-DD2437A6DC58}.Debug|Any CPU.Build.0 = Debug|Any CPU + {295DC7CD-C461-4EE6-B3B4-DD2437A6DC58}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU + {295DC7CD-C461-4EE6-B3B4-DD2437A6DC58}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU + {295DC7CD-C461-4EE6-B3B4-DD2437A6DC58}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU + {295DC7CD-C461-4EE6-B3B4-DD2437A6DC58}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU + EndGlobalSection +EndGlobal diff --git a/Scenes/MainScene.cs b/Scenes/MainScene.cs new file mode 100644 index 0000000..2eb2fd0 --- /dev/null +++ b/Scenes/MainScene.cs @@ -0,0 +1,10 @@ +public partial class MainScene : Node2D +{ + public override void _Ready() + { + } + + public override void _Process(double delta) + { + } +} diff --git a/Scenes/MainScene.tscn b/Scenes/MainScene.tscn new file mode 100644 index 0000000..d09e1c2 --- /dev/null +++ b/Scenes/MainScene.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=3 uid="uid://bj76b7i8hyb0"] + +[ext_resource type="Script" path="res://Scenes/MainScene.cs" id="1_6buw1"] + +[node name="MainScene" type="Node2D"] +script = ExtResource("1_6buw1") diff --git a/ScriptTemplates/Node/.gdignore b/ScriptTemplates/Node/.gdignore new file mode 100644 index 0000000..e69de29 diff --git a/ScriptTemplates/Node/Standard.cs b/ScriptTemplates/Node/Standard.cs new file mode 100644 index 0000000..bc90443 --- /dev/null +++ b/ScriptTemplates/Node/Standard.cs @@ -0,0 +1,9 @@ +namespace MemoryEffect +{ + public partial class _CLASS_ : _BASE_ + { + public override void _Ready() + { + } + } +} diff --git a/project.godot b/project.godot index edcb564..b44dfdd 100644 --- a/project.godot +++ b/project.godot @@ -10,10 +10,33 @@ config_version=5 [application] -config/name="Memory Effect" +config/name="MemoryEffect" +config/name_localized={ +"en": "Memory Effect", +"zh_Hans": "记忆效应", +"zh_Hant": "記憶效應" +} config/features=PackedStringArray("4.0", "Forward Plus") config/icon="res://icon.svg" +[display] + +window/size/viewport_width=1600 +window/size/viewport_height=900 + [dotnet] -project/assembly_name="Memory Effect" +project/assembly_name="MemoryEffect" + +[editor] + +script/templates_search_path="res://ScriptTemplates" +naming/default_signal_callback_name="On_{NodeName}_{SignalName}" +naming/default_signal_callback_to_self_name="On_{SignalName}" +naming/scene_name_casing=1 + +[rendering] + +anti_aliasing/quality/msaa_2d=1 +anti_aliasing/quality/msaa_3d=1 +anti_aliasing/quality/screen_space_aa=1