commit faa47152506f2e237191446b28d998de13020011 Author: Gabriel Kaszewski Date: Mon Sep 22 23:56:44 2025 +0200 initial commit: add C# LDTK importer and project configuration diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f28239b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,4 @@ +root = true + +[*] +charset = utf-8 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8ad74f7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0af181c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Godot 4+ specific ignores +.godot/ +/android/ diff --git a/addons/csharp_ldtk_importer/LdtkImporter.cs b/addons/csharp_ldtk_importer/LdtkImporter.cs new file mode 100644 index 0000000..9659ffd --- /dev/null +++ b/addons/csharp_ldtk_importer/LdtkImporter.cs @@ -0,0 +1,6 @@ +using Godot; +using System; + +public partial class LdtkImporter : Node +{ +} diff --git a/addons/csharp_ldtk_importer/LdtkImporter.cs.uid b/addons/csharp_ldtk_importer/LdtkImporter.cs.uid new file mode 100644 index 0000000..c997273 --- /dev/null +++ b/addons/csharp_ldtk_importer/LdtkImporter.cs.uid @@ -0,0 +1 @@ +uid://buyiva0tyos7g diff --git a/addons/csharp_ldtk_importer/plugin.cfg b/addons/csharp_ldtk_importer/plugin.cfg new file mode 100644 index 0000000..bfb67f7 --- /dev/null +++ b/addons/csharp_ldtk_importer/plugin.cfg @@ -0,0 +1,7 @@ +[plugin] + +name="C# LDTK Importer" +description="Imports LDtk level files as Godot scenes." +author="Gabriel Kaszewski" +version="1.0" +script="LdtkImporter.cs" \ No newline at end of file diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..c6bbb7d --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..36f7bdd --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,43 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dmrfe4r8rw46w" +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/ldtk-importer.csproj b/ldtk-importer.csproj new file mode 100644 index 0000000..e6cdef7 --- /dev/null +++ b/ldtk-importer.csproj @@ -0,0 +1,8 @@ + + + net8.0 + net9.0 + true + ldtkimporter + + \ No newline at end of file diff --git a/ldtk-importer.sln b/ldtk-importer.sln new file mode 100644 index 0000000..0f77de7 --- /dev/null +++ b/ldtk-importer.sln @@ -0,0 +1,19 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ldtk-importer", "ldtk-importer.csproj", "{BC2E98F2-EB00-4153-A241-F369E42F135E}" +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 + {BC2E98F2-EB00-4153-A241-F369E42F135E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BC2E98F2-EB00-4153-A241-F369E42F135E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BC2E98F2-EB00-4153-A241-F369E42F135E}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU + {BC2E98F2-EB00-4153-A241-F369E42F135E}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU + {BC2E98F2-EB00-4153-A241-F369E42F135E}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU + {BC2E98F2-EB00-4153-A241-F369E42F135E}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU + EndGlobalSection +EndGlobal diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..920d1ec --- /dev/null +++ b/project.godot @@ -0,0 +1,24 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="ldtk-importer" +config/features=PackedStringArray("4.5", "GL Compatibility") +config/icon="res://icon.svg" + +[dotnet] + +project/assembly_name="ldtk-importer" + +[rendering] + +renderer/rendering_method="gl_compatibility" +renderer/rendering_method.mobile="gl_compatibility"