来,写个helloWorld
其实更像是熟悉IDE使用。
简介
简单调研了一下几个游戏引擎:
引擎 | 大小 | 说明 |
Godot | 小 | 2D为主,这个游戏引擎是开源的。 |
rpgmaker | 小 | 简单,为像素风rpg游戏制作。 |
unity | 中 | 社区更活跃,不过收费了? |
cocos | 中 | 国产游戏引擎,用(踩坑)的人不多。 |
unreal | 超级大 | 鼎鼎大名,3A大作用这个 |
我想要折腾一个类似口袋妖怪的像素风游戏。Godot更合适我,所以选择这个。
Godot 我类比的话是VB,脚本GDScript,类python。
你好世界
控制台输出helloworld和画布正中央显示hello world
- 新建项目(略)
- 新建2D场景
- 新建GDscript
extends Node2D
func _ready():
print("hello World")
F5运行,控制台就输出hello World了。

4. 新建label。顶部选2D,放label到正中央。右侧text输入helloworld。运行。




参考
官方demo,很多小游戏:
# 官网
https://godotengine.org/
# 源码
https://github.com/godotengine/godot
# 官方demo,很多小游戏源码。
https://github.com/godotengine/godot-demo-projects/tree/master
发表回复