Hobby project: game remake
Prologue
经过百般思虑,我决定将我的闲暇之余所制作的游戏的项目“砍掉重练”。有诸多原因。主要原因就是现有的代码过于不理想,让我很难继续。
第二,现在有 AI (LLM),我能够更容易学习到制作游戏的基本技巧和知识,减少试错和错误的决定。
第三,如果玩游戏可以重来,哪为何制作游戏又不可重来?
Story
Finally, I decided to restart my hobby game development project. Previously I built it based on full-stack engineering knowledge. But that’s not right. It makes everything super complicated. Luckily, we have AI today, which I can learn game development more efficiently.
I choose Godot Mono (C#), as it is free and open source. Unity though is more popular, the license is complicated. Godot has its own language, GDScript, which is similar to Python, yet I don’t like Python syntax. C# is more universal comparing to GDScript.
Godot Mono and tests
In my previous post, I mentioned about using C# for Godot Mono. However, recently I found that, due to MonoDevelop is inactive, it causes my personal project not able to be built. As a result, I have to change the build tool to dotnet CLI. This can be set through
Godot (Mono) > Editor > Editor Settings > Mono > Builds > Build Tool
Besides that, I also changed the External Editor from MonoDevelop to Visual Studio Code. Visual Studio Code is nice for the C# project. It has autocompletion and able to find function definition and function references.
Godot and C#
In my previous post, I wrote about my hobby project with Godot.
Limitations of GDScript
But I personally feel that, Godot script, namely GDScript, is not my favourite. Though GDScript is good enough to do anything, it is not what I like. Firstly, it is Python-like language. In my opinion, using indentation as scope is annoying, because I cannot auto-indent using Emacs. Due to my first programming language is C, and heavy use on JavaScript, braces (curly brackets {}) are easier to read.