Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: port project to Godot 4 .NET #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ We also recommend reading the great [step-by-step guide](http://docs.godotengine

## Godot 4

This course was originally made with Godot 3. Since then, there have been several changes to the engine code. If you'd like to run this project with Godot 4, a port is available in the `godot4-game` folder.

*Currently, this port only exists for the GDScript version of the project. The C# version has yet to be ported.*
This course was originally made with Godot 3. Since then, there have been several changes to the engine code. If you'd like to run this project with Godot 4, ports are available in `godot4-game` and `godot4-.net-game` folders.

## How to get this free course

Expand Down
14 changes: 14 additions & 0 deletions godot4-.net-game/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "/Applications/Godot_mono.app/Contents/MacOS/Godot",
"console": "internalConsole",
"stopAtEntry": false
}
]
}
24 changes: 24 additions & 0 deletions godot4-.net-game/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "shell",
"args": [
"build",
// Ask dotnet build to generate full paths for file names.
"/property:GenerateFullPaths=true",
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
"/consoleloggerparameters:NoSummary"
],
"group": "build",
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
}
]
}
6 changes: 6 additions & 0 deletions godot4-.net-game/2DPlatformer.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project Sdk="Godot.NET.Sdk/4.0.2">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
</PropertyGroup>
</Project>
19 changes: 19 additions & 0 deletions godot4-.net-game/2DPlatformer.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "2DPlatformer", "2DPlatformer.csproj", "{0BDF99EA-99CB-4CB3-8085-4565FC173500}"
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
{0BDF99EA-99CB-4CB3-8085-4565FC173500}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0BDF99EA-99CB-4CB3-8085-4565FC173500}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0BDF99EA-99CB-4CB3-8085-4565FC173500}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU
{0BDF99EA-99CB-4CB3-8085-4565FC173500}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU
{0BDF99EA-99CB-4CB3-8085-4565FC173500}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU
{0BDF99EA-99CB-4CB3-8085-4565FC173500}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU
EndGlobalSection
EndGlobal
Binary file added godot4-.net-game/assets/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions godot4-.net-game/assets/background.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://d2yiedlquaaww"
path="res://.godot/imported/background.png-1fdba8b6a966ce2c2ffc607f7c096e95.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/background.png"
dest_files=["res://.godot/imported/background.png-1fdba8b6a966ce2c2ffc607f7c096e95.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
Binary file added godot4-.net-game/assets/bumper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions godot4-.net-game/assets/bumper.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://clo1pi3ry3pp7"
path="res://.godot/imported/bumper.png-47785785aa6eb7e7a0af4baae66981c0.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/bumper.png"
dest_files=["res://.godot/imported/bumper.png-47785785aa6eb7e7a0af4baae66981c0.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
Binary file added godot4-.net-game/assets/coin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions godot4-.net-game/assets/coin.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://bu7gkb3fnbp72"
path="res://.godot/imported/coin.png-f04b9cd408b88aba3ab0966b4da32df0.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/coin.png"
dest_files=["res://.godot/imported/coin.png-f04b9cd408b88aba3ab0966b4da32df0.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
Binary file added godot4-.net-game/assets/enemy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions godot4-.net-game/assets/enemy.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://gb7f1uep7fg5"
path="res://.godot/imported/enemy.png-63f114c7bb3f2105c232c34f647cbc2d.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/enemy.png"
dest_files=["res://.godot/imported/enemy.png-63f114c7bb3f2105c232c34f647cbc2d.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
10 changes: 10 additions & 0 deletions godot4-.net-game/assets/font_default.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]

[ext_resource path="res://assets/montserrat_extrabold.otf" type="DynamicFontData" id=1]


[resource]
size = 24
use_mipmaps = true
use_filter = true
font_data = ExtResource( 1 )
9 changes: 9 additions & 0 deletions godot4-.net-game/assets/font_title.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]

[ext_resource path="res://assets/montserrat_extrabold.otf" type="DynamicFontData" id=1]

[resource]
size = 46
use_mipmaps = true
use_filter = true
font_data = ExtResource( 1 )
Binary file added godot4-.net-game/assets/light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions godot4-.net-game/assets/light.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://eihny1x1d8ix"
path="res://.godot/imported/light.png-87539b10c4b4cebc046b6b91ffea6f69.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/light.png"
dest_files=["res://.godot/imported/light.png-87539b10c4b4cebc046b6b91ffea6f69.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
Binary file added godot4-.net-game/assets/montserrat_extrabold.otf
Binary file not shown.
33 changes: 33 additions & 0 deletions godot4-.net-game/assets/montserrat_extrabold.otf.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[remap]

importer="font_data_dynamic"
type="FontFile"
uid="uid://b313fil6yhv0o"
path="res://.godot/imported/montserrat_extrabold.otf-a5f3fe952b766712da299c69be7c0bf9.fontdata"

[deps]

source_file="res://assets/montserrat_extrabold.otf"
dest_files=["res://.godot/imported/montserrat_extrabold.otf-a5f3fe952b766712da299c69be7c0bf9.fontdata"]

[params]

Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}
Binary file added godot4-.net-game/assets/player.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions godot4-.net-game/assets/player.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://c32l5g5lnei56"
path="res://.godot/imported/player.png-be2216fcaabb5c62aa2466cd9a5726a8.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/player.png"
dest_files=["res://.godot/imported/player.png-be2216fcaabb5c62aa2466cd9a5726a8.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
Binary file added godot4-.net-game/assets/portal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions godot4-.net-game/assets/portal.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://8saih2ux80q6"
path="res://.godot/imported/portal.png-aead05909ff805293aa08d3705b32f3c.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/portal.png"
dest_files=["res://.godot/imported/portal.png-aead05909ff805293aa08d3705b32f3c.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
13 changes: 13 additions & 0 deletions godot4-.net-game/assets/theme/button_normal.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[gd_resource type="StyleBoxFlat" format=2]

[resource]
bg_color = Color( 0.890196, 0.411765, 0.337255, 1 )
border_width_left = 6
border_width_top = 6
border_width_right = 6
border_width_bottom = 6
border_color = Color( 1, 0.709804, 0.439216, 1 )
corner_radius_top_left = 16
corner_radius_top_right = 16
corner_radius_bottom_right = 16
corner_radius_bottom_left = 16
Loading