News for hackers. Stuff that matters.
Re:Making Small Games, Which Is Fun in Itself by tarruda on Wednesday January 03, 2024 @01:37PM (#38857827)
I want to begin game development as a hobby, but I'm unsure where to start. I did follow through https://learnopengl.com/ a few years ago, and while it was a very interesting experience, I imagine I would need to use an existing engine to be productive.

Do you recommend any books and tutorials aimed at experienced programmers with 0 knowledge of game development/design?

Re:Making Small Games, Which Is Fun in Itself by GuB-42 on Wednesday January 03, 2024 @04:12PM (#38859998)
OpenGL is probably not the best way to start game dev. It is a bit too low level for that. I mean, OpenGL is awesome, and a great way to learn graphics programming, but if you intend to make a game that is fun to play, it is easy to get lost in technicalities.

When I started with Blitz Basic, not only my productivity skyrocketed, but I also made better games, because I actually thought about gameplay, not about getting the maths right. Blitz Basic is a game-oriented variant of the Basic programming language, very simple and straightforward. You can try it if you want, but it is two decades old, so I don't know how well it aged. But the important part is to have something simple that can free you from technical details and boilerplate, it can be an engine.

That's unless you want to practice with the technical details, but doing that, the output will probably be more demo than game. And by the way, if you are into that you should check the demoscene, it is awesome.

Re:Making Small Games, Which Is Fun in Itself by krapp on Wednesday January 03, 2024 @01:43PM (#38857904)
Just start with a framework like Godot. There are plenty of tutorials online.

If you really want to go low level with it, though, my personal sweet spot is C, Lua/LuaJIT and SDL2. Although practically speaking C++ is probably better.

Re:Making Small Games, Which Is Fun in Itself by alectroem on Wednesday January 03, 2024 @01:47PM (#38857968)
I would highly recommend starting with a fantasy console such as Pico-8 or TIC-80. They remove the temptation to start by building a game engine from scratch, and instead help you focus on actually creating games! Plus they have great communities, complete docs, and simple apis.
Re:Making Small Games, Which Is Fun in Itself by krapp on Wednesday January 03, 2024 @02:10PM (#38858379)
Yeah, one of the traps I find myself falling into a lot is that the act of writing code itself can be satisfying enough, and fear (of finishing, complexity and failure) can lead to just spinning your wheels for a long time.
Re:Making Small Games, Which Is Fun in Itself by tarruda on Wednesday January 03, 2024 @01:49PM (#38858004)
I will keep that in mind, thanks.

My initial research suggest that Godot games are written in C#. Since you use C/SDL2, do you code directly your own OpenGL engine?

Re:Making Small Games, Which Is Fun in Itself by PsylentKnight on Wednesday January 03, 2024 @03:17PM (#38859236)
> My initial research suggest that Godot games are written in C#

There are a few supported languages (including a custom Python-like language called GDScript). C# is just just one of them.

Re:Making Small Games, Which Is Fun in Itself by krapp on Wednesday January 03, 2024 @01:59PM (#38858183)
I don't use OpenGL. I probably should, and this year I'm planning on getting into Blender and 3D (but through Godot) but everything I do in SDL is 2d and sprite based, and SDL handles pushing the triangles/quads on its own.

Also, Godot games are also written in its native scripting language (GDScript) and it supports other languages, although I don't know how well, or how up to date anything is.

Re:Making Small Games, Which Is Fun in Itself by hypertele-Xii on Thursday January 04, 2024 @12:01AM (#38863206)
I can consult you on that subject if you want to chat.