commit 794a3646edf7facf1fcac546f3e2307d4ede0d45 Author: Fries Date: Tue May 16 20:28:26 2023 -0700 Initial Commit 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..d9aac21 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# Godot 4+ specific ignores +.godot/ + +# Godot-specific ignores +.import/ +export.cfg +export_presets.cfg + +# Imported translations (automatically generated from CSV files) +*.translation + +# Mono-specific ignores +.mono/ +data_*/ +mono_crash.*.json diff --git a/.idea/.idea.Pong/.idea/.gitignore b/.idea/.idea.Pong/.idea/.gitignore new file mode 100644 index 0000000..bee8524 --- /dev/null +++ b/.idea/.idea.Pong/.idea/.gitignore @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/projectSettingsUpdater.xml +/contentModel.xml +/modules.xml +/.idea.Pong.iml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/.idea.Pong/.idea/encodings.xml b/.idea/.idea.Pong/.idea/encodings.xml new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ b/.idea/.idea.Pong/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/.idea.Pong/.idea/indexLayout.xml b/.idea/.idea.Pong/.idea/indexLayout.xml new file mode 100644 index 0000000..bd4848e --- /dev/null +++ b/.idea/.idea.Pong/.idea/indexLayout.xml @@ -0,0 +1,10 @@ + + + + + ../../GodotProjects + + + + + \ No newline at end of file diff --git a/.idea/.idea.Pong/.idea/vcs.xml b/.idea/.idea.Pong/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/.idea.Pong/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/GodotCharacter.cs b/GodotCharacter.cs new file mode 100644 index 0000000..57818f5 --- /dev/null +++ b/GodotCharacter.cs @@ -0,0 +1,16 @@ +using Godot; + +namespace Pong; + +public partial class GodotCharacter : Sprite2D +{ + private const double Meter = 10; + + [Export] + private double _moveSpeed; + + public override void _Process(double delta) + { + Position += Vector2.Right * Meter * _moveSpeed * delta; + } +} diff --git a/GodotCharacter.tscn b/GodotCharacter.tscn new file mode 100644 index 0000000..e26fecb --- /dev/null +++ b/GodotCharacter.tscn @@ -0,0 +1,8 @@ +[gd_scene load_steps=3 format=3 uid="uid://cnwfyao83u6y5"] + +[ext_resource type="Texture2D" uid="uid://b186qihsjblv7" path="res://icon.svg" id="1_hmqt3"] +[ext_resource type="Script" path="res://GodotCharacter.cs" id="2_006i4"] + +[node name="GodotCharacter" type="Sprite2D"] +texture = ExtResource("1_hmqt3") +script = ExtResource("2_006i4") diff --git a/Pong.csproj b/Pong.csproj new file mode 100644 index 0000000..e215484 --- /dev/null +++ b/Pong.csproj @@ -0,0 +1,6 @@ + + + net6.0 + true + + \ No newline at end of file diff --git a/Pong.sln b/Pong.sln new file mode 100644 index 0000000..32553e9 --- /dev/null +++ b/Pong.sln @@ -0,0 +1,19 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pong", "Pong.csproj", "{B230029C-7171-4383-9AD0-EC21E8A9EC9F}" +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 + {B230029C-7171-4383-9AD0-EC21E8A9EC9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B230029C-7171-4383-9AD0-EC21E8A9EC9F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B230029C-7171-4383-9AD0-EC21E8A9EC9F}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU + {B230029C-7171-4383-9AD0-EC21E8A9EC9F}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU + {B230029C-7171-4383-9AD0-EC21E8A9EC9F}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU + {B230029C-7171-4383-9AD0-EC21E8A9EC9F}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU + EndGlobalSection +EndGlobal diff --git a/Pong.sln.DotSettings.user b/Pong.sln.DotSettings.user new file mode 100644 index 0000000..ab3d771 --- /dev/null +++ b/Pong.sln.DotSettings.user @@ -0,0 +1,4 @@ + + <AssemblyExplorer> + <Assembly Path="/home/user/.local/share/godot/mono/GodotNuGetFallbackFolder/godotsharp/4.0.2/lib/net6.0/GodotSharp.dll" /> +</AssemblyExplorer> \ No newline at end of file diff --git a/addons/godot-git-plugin/git_plugin.gdextension b/addons/godot-git-plugin/git_plugin.gdextension new file mode 100644 index 0000000..e6db240 --- /dev/null +++ b/addons/godot-git-plugin/git_plugin.gdextension @@ -0,0 +1,11 @@ +[configuration] + +entry_symbol = "git_plugin_init" + +[libraries] + +macos.editor = "macos/libgit_plugin.macos.editor.universal.dylib" +windows.editor.x86_64 = "win64/libgit_plugin.windows.editor.x86_64.dll" +linux.editor.double.x86_64 = "linux/libgit_plugin.linux.editor.double.x86_64.so" +linux.editor.double.arm64 = "linux/libgit_plugin.linux.editor.double.arm64.so" +linux.editor.rv64 = "" diff --git a/addons/godot-git-plugin/linux/.gitattributes b/addons/godot-git-plugin/linux/.gitattributes new file mode 100644 index 0000000..dd135e8 --- /dev/null +++ b/addons/godot-git-plugin/linux/.gitattributes @@ -0,0 +1,2 @@ +libgit_plugin.linux.editor.double.arm64.so filter=lfs diff=lfs merge=lfs -text +libgit_plugin.linux.editor.double.x86_64.so filter=lfs diff=lfs merge=lfs -text diff --git a/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.double.arm64.so b/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.double.arm64.so new file mode 100755 index 0000000..7cb432e --- /dev/null +++ b/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.double.arm64.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c4c17ed282034a80ac756e72741762be159c171f95d11ac141341edac85afd4 +size 2931744 diff --git a/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.double.x86_64.so b/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.double.x86_64.so new file mode 100755 index 0000000..0123c58 --- /dev/null +++ b/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.double.x86_64.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46cd623b7c8baa5779e165e534a82d99a0288bf655c2fc6be92ad80db656fff1 +size 8781400 diff --git a/addons/godot-git-plugin/plugin.cfg b/addons/godot-git-plugin/plugin.cfg new file mode 100644 index 0000000..be25f2d --- /dev/null +++ b/addons/godot-git-plugin/plugin.cfg @@ -0,0 +1,7 @@ +[plugin] + +name="Godot Git Plugin" +description="This plugin lets you interact with Git without leaving the Godot editor. More information can be found at https://github.com/godotengine/godot-git-plugin/wiki" +author="twaritwaikar" +version="v3.0.0-beta1" +script="godot-git-plugin.gd" diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..adc26df --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..e6daa14 --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b186qihsjblv7" +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/pong.tscn b/pong.tscn new file mode 100644 index 0000000..d4ea3c0 --- /dev/null +++ b/pong.tscn @@ -0,0 +1,9 @@ +[gd_scene load_steps=2 format=3 uid="uid://btnh2d0qsywpt"] + +[ext_resource type="PackedScene" uid="uid://cnwfyao83u6y5" path="res://GodotCharacter.tscn" id="1_0pstb"] + +[node name="Pong" type="Node2D"] + +[node name="GodotCharacter" parent="." instance=ExtResource("1_0pstb")] +position = Vector2(-2, 0) +_moveSpeed = 5.0 diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..0decf43 --- /dev/null +++ b/project.godot @@ -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=5 + +[application] + +config/name="Pong" +run/main_scene="res://pong.tscn" +config/features=PackedStringArray("4.0", "C#", "Double Precision", "Mobile") +config/icon="res://icon.svg" + +[dotnet] + +project/assembly_name="Pong" + +[editor] + +version_control/plugin_name="GitPlugin" +version_control/autoload_on_startup=true + +[rendering] + +renderer/rendering_method="mobile"