News for hackers. Stuff that matters.
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.