hhstore / blog

My Tech Blog: about Mojo / Rust / Golang / Python / Kotlin / Flutter / VueJS / Blockchain etc.
https://github.com/hhstore/blog/issues
276 stars 22 forks source link

GameDev: Game Engine - Godot #400

Open hhstore opened 1 year ago

hhstore commented 1 year ago

related:

hhstore commented 1 year ago

游戏开发: Godot 游戏引擎

Why Godot?

Godot 官方:

topic:

awesome:

🔥️ GDScript:

2D:

3D:

XR(VR/AR):

🔥️ Demo:

RPG:

Reference:

hhstore commented 1 year ago

Godot 游戏示例:

官方列表:

射击游戏:

🔥️ 马里奥:

hhstore commented 1 year ago

Godot + Rust:

hhstore commented 1 year ago

Godot 4.x:

hhstore commented 1 year ago

Godot 搭建 Mac 开发环境:

Godot 下载+安装:

安装 .NET 依赖:

curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin

安装 7.0.5:

curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --runtime dotnet --version 7.0.5

安装 6.0.16:

curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --runtime dotnet --version 6.0.16


- ✅ .NET 依赖: https://dotnet.microsoft.com/en-us/download/dotnet/7.0
    - 注意 M1 Mac, 仍然安装 x64 版本
- ✅ https://godotengine.org/article/dev-snapshot-godot-4-0-beta-16/
    - ✅ 已经支持 .NET 7
- ✅ https://news.ycombinator.com/item?id=34547637

### 设置 .NET 环境变量:

- 安装完 .NET, 需要重启 Mac, 才能生效.
- fix: https://github.com/godotengine/godot/issues/75668#issuecomment-1566213431
- fix: https://github.com/godotengine/godot/issues/75186
- ✅ https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script#set-environment-variables
- ✅ 安装路径: `/usr/local/share/dotnet/x64/sdk`, 
    - 版本: `6.0.408`
    - 版本: `7.0.302`
- https://learn.microsoft.com/en-us/dotnet/core/install/macos#path-differences

```ruby

配置正确的环境变量:


❯ /usr/local/share/dotnet/dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.408
 Commit:    0c3669d367

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  12.4
 OS Platform: Darwin
 RID:         osx.12-arm64
 Base Path:   /usr/local/share/dotnet/sdk/6.0.408/

global.json file:
  Not found

Host:
  Version:      6.0.16
  Architecture: arm64
  Commit:       1e620a42e7

.NET SDKs installed:
  6.0.408 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.16 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.16 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

卸载 .NET:

mkdir -p ~/dotnet-core-uninstall
tar -zxf dotnet-core-uninstall.tar.gz -C ~/dotnet-core-uninstall
cd ~/dotnet-core-uninstall
./dotnet-core-uninstall -h

vscode 配置 .NET 开发环境:

fix:

hhstore commented 1 year ago

Godot 文档:

开发环境:

开始:

Godot 支持的脚本语言:

推荐使用(脚本语言):

不推荐使用(脚本语言):

🔥️ GDScript

基础语法点:

进阶语法点:

静态类型:

🔥️ GDExtension: Godot 4 + C++/Rust

GDNative: Godot 3 + C++/Rust (废弃进行时)

hhstore commented 1 year ago

Godot 核心概念:

Godot 编辑器:

Godot 渐进式教程

Godot 2D

Godot 3D

🔥️ Godot 网络编程:

🚀️ Godot API

Godot 素材库

hhstore commented 1 year ago

Godot 开发实践:

🔥️ 2D 游戏开发:

hhstore commented 1 year ago

1

hhstore commented 1 year ago

1

hhstore commented 1 year ago

1

hhstore commented 1 year ago

1