From b72bacac704fbce299634bbeb1ab2a3bd982d5a9 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 2 Jun 2023 01:16:10 +0200 Subject: [PATCH] Test project. --- game/Main.tscn | 13 +++++++++++++ game/Mono Test.csproj | 6 ++++++ game/Mono Test.sln | 19 +++++++++++++++++++ game/TestSprite.cs | 22 ++++++++++++++++++++++ game/default_env.tres | 7 +++++++ game/icon.png | Bin 0 -> 3218 bytes game/icon.png.import | 35 +++++++++++++++++++++++++++++++++++ game/project.pandemonium | 29 +++++++++++++++++++++++++++++ 8 files changed, 131 insertions(+) create mode 100644 game/Main.tscn create mode 100644 game/Mono Test.csproj create mode 100644 game/Mono Test.sln create mode 100644 game/TestSprite.cs create mode 100644 game/default_env.tres create mode 100644 game/icon.png create mode 100644 game/icon.png.import create mode 100644 game/project.pandemonium diff --git a/game/Main.tscn b/game/Main.tscn new file mode 100644 index 0000000..1c283cf --- /dev/null +++ b/game/Main.tscn @@ -0,0 +1,13 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://TestSprite.cs" type="Script" id=1] +[ext_resource path="res://icon.png" type="Texture" id=2] + +[node name="Main" type="Node"] + +[node name="Node2D" type="Node2D" parent="."] +position = Vector2( 515, 262 ) + +[node name="TestSprite" type="Sprite" parent="Node2D"] +texture = ExtResource( 2 ) +script = ExtResource( 1 ) diff --git a/game/Mono Test.csproj b/game/Mono Test.csproj new file mode 100644 index 0000000..ea5727d --- /dev/null +++ b/game/Mono Test.csproj @@ -0,0 +1,6 @@ + + + net472 + MonoTest + + \ No newline at end of file diff --git a/game/Mono Test.sln b/game/Mono Test.sln new file mode 100644 index 0000000..7c410d2 --- /dev/null +++ b/game/Mono Test.sln @@ -0,0 +1,19 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono Test", "Mono Test.csproj", "{E216B347-14C8-478B-A438-25504B10640F}" +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 + {E216B347-14C8-478B-A438-25504B10640F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E216B347-14C8-478B-A438-25504B10640F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E216B347-14C8-478B-A438-25504B10640F}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU + {E216B347-14C8-478B-A438-25504B10640F}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU + {E216B347-14C8-478B-A438-25504B10640F}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU + {E216B347-14C8-478B-A438-25504B10640F}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU + EndGlobalSection +EndGlobal diff --git a/game/TestSprite.cs b/game/TestSprite.cs new file mode 100644 index 0000000..438a004 --- /dev/null +++ b/game/TestSprite.cs @@ -0,0 +1,22 @@ +using Godot; +using System; + +public class TestSprite : Sprite +{ + // Declare member variables here. Examples: + // private int a = 2; + // private string b = "text"; + + // Called when the node enters the scene tree for the first time. + public override void _Ready() + { + + } + + // Called every frame. 'delta' is the elapsed time since the previous frame. + public override void _Process(float delta) + { + //Position += new Vector2(PMath.sin(delta) * 100, PMath.cos(delta) * 100); + Position += new Vector2(1, 1); + } +} diff --git a/game/default_env.tres b/game/default_env.tres new file mode 100644 index 0000000..4f08e8f --- /dev/null +++ b/game/default_env.tres @@ -0,0 +1,7 @@ +[gd_resource type="Environment3D" load_steps=2 format=2] + +[sub_resource type="ProceduralSky" id=1] + +[resource] +background_mode = 2 +background_sky = SubResource( 1 ) diff --git a/game/icon.png b/game/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..87f1f7549e0489d0758939152cd1f879f1e653b5 GIT binary patch literal 3218 zcmV;D3~lp?P)Px>Oi4sRRCt`-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xP@G_eO(M}$032D-%iqQr3ls5qG=kP(I{o(lU!?< zxTmk^*12>#$HoeZ2MRWTQi|l{B*HAmavaWENiLW=HK8CaRaNM^PAZimGBm{dBO^>s zPU5m0f-Vjz#ODNBNu?NbY=$ihTi00O_2T!}v&HY9*Y=9X<9yKH zj~N+emCL{-BxB>_ghHX>46xV&o^TxYB%=g_L283R)*Hq=x~}Wgg+kO#4;)VmA$ z-=)^;lA*u9e_pXhDD{r;`FyQzT|X>@n7wCK;qws+g$nAgUk$Kro8G=Y#>dBJpDCrH z$y92CsH&_)lkyQEWkwojxZRi@&$5=dmJ`Zxh{xk||06UDN2xE{w*CCf%!J?Xe@zN; z`=wR!@<2JxYmwpMy8ty4)hLv@Lpjb@l~RRW1Gx&Jl$uhG^A+GurceEOYrCeR0vu;M1& literal 0 HcmV?d00001 diff --git a/game/icon.png.import b/game/icon.png.import new file mode 100644 index 0000000..a4c02e6 --- /dev/null +++ b/game/icon.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.png" +dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/game/project.pandemonium b/game/project.pandemonium new file mode 100644 index 0000000..dcd919d --- /dev/null +++ b/game/project.pandemonium @@ -0,0 +1,29 @@ +; 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=4 + +[application] + +config/name="Mono Test" +run/main_scene="res://Main.tscn" +config/icon="res://icon.png" + +[mono] + +project/assembly_name="Mono Test" + +[physics] + +common/enable_pause_aware_picking=true + +[rendering] + +vram_compression/import_etc=true +vram_compression/import_etc2=false +environment/default_environment="res://default_env.tres"