commit a6989017774e2262be97da26977dd94740c4df06 Author: david Date: Sun Feb 2 11:35:57 2025 +0100 2.2 first script 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/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..929a18a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "godotTools.editorPath.godot4": "d:\\dev\\Godot_v4.3-stable_mono_win64\\Godot_v4.3-stable_mono_win64.exe" +} \ No newline at end of file diff --git a/ProjectBoost.csproj b/ProjectBoost.csproj new file mode 100644 index 0000000..53cc1f1 --- /dev/null +++ b/ProjectBoost.csproj @@ -0,0 +1,8 @@ + + + net6.0 + net7.0 + net8.0 + true + + \ No newline at end of file diff --git a/ProjectBoost.sln b/ProjectBoost.sln new file mode 100644 index 0000000..9edf7db --- /dev/null +++ b/ProjectBoost.sln @@ -0,0 +1,19 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectBoost", "ProjectBoost.csproj", "{0ABC4610-E0BF-42EE-81A1-E334BD220681}" +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 + {0ABC4610-E0BF-42EE-81A1-E334BD220681}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0ABC4610-E0BF-42EE-81A1-E334BD220681}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0ABC4610-E0BF-42EE-81A1-E334BD220681}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU + {0ABC4610-E0BF-42EE-81A1-E334BD220681}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU + {0ABC4610-E0BF-42EE-81A1-E334BD220681}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU + {0ABC4610-E0BF-42EE-81A1-E334BD220681}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU + EndGlobalSection +EndGlobal diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..9d8b7fa --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..ac342ec --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dee46ibik0emh" +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/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +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/project.godot b/project.godot new file mode 100644 index 0000000..c1f8694 --- /dev/null +++ b/project.godot @@ -0,0 +1,19 @@ +; 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="ProjectBoost" +config/features=PackedStringArray("4.3", "Forward Plus") +config/icon="res://icon.svg" + +[dotnet] + +project/assembly_name="ProjectBoost" diff --git a/scenes/characters/Player.cs b/scenes/characters/Player.cs new file mode 100644 index 0000000..9bf4fac --- /dev/null +++ b/scenes/characters/Player.cs @@ -0,0 +1,19 @@ +using Godot; +using System; + +public partial class Player : Node3D +{ + public override void _Ready() + { + GD.Print("Hello World!"); + GD.Print("Don't Panic!"); + } + + public override void _Process(double delta) + { + if (Input.IsActionJustPressed("ui_accept")) + { + GD.Print("Player accepted"); + } + } +} diff --git a/scenes/characters/player.tscn b/scenes/characters/player.tscn new file mode 100644 index 0000000..a95170c --- /dev/null +++ b/scenes/characters/player.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=3 uid="uid://cuduv6fwqtocs"] + +[ext_resource type="Script" path="res://scenes/characters/Player.cs" id="1_fr1bo"] + +[node name="Player" type="Node3D"] +script = ExtResource("1_fr1bo")