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 0000000..87f1f75 Binary files /dev/null and b/game/icon.png differ 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"