Now work in progress.
Tutorial: Writing a 2D Platform Game in Zig language with SDL2.
This repository has been inherited from Nim-Platformer, LuaJIT-Platformer and Nelua-Platformer project.
- Document
English: https://hookrace.net/blog/writing-a-2d-platform-game-in-nim-with-sdl2/
Japanese: https://postd.cc/writing-a-2d-platform-game-in-nim-with-sdl2/
Skin database https://ddnet.org/skins
- Windows: zig-0.14.0-dev.3445+6c3cbb0c8.zip (2025/03/02)
- Linux Debian: zig-0.14.0-dev.3445+6c3cbb0c8.tar.xz
- zig-0.13.0
-
Windows10 or later
- MSys2/MinGW basic commands (make, rm, cp, strip ...)
-
Linux: Debian families
$ sudo apt install xorg-dev libopengl-dev libgl1-mesa-dev $ sudo apt install libsdl2-dev
git clone /~https://github.com/dinau/zig-platformer
cd zig-platformer
For instance,
cd part3
make run # or zig build --release=fast run
Key | Function |
---|---|
Up,Space, J, K | Jump |
Left, A, H | Left |
Right, D, L | Right |
R | Restart |
Q | Quit |
platformer_part1
platformer_part2
platformer_part3
platformer_part4
platformer_part5 : From here it can move the item with key operation.
platformer_part6
platformer_part7
[platformer_part8]
Language | Project | |
---|---|---|
Nim | Compiler | Nim-Platformer / sdl3_nim |
LuaJIT | Script | LuaJIT-Platformer |
Nelua | Compiler | NeLua-Platformer |
Zig | Compiler | Zig-Platformer WIP |
C3 | Compiler | C3-Platformer WIP |
Language | Project | |
---|---|---|
Nim | Compiler | ImGuin, Nimgl_test, Nim_implot |
Lua | Script | LuaJITImGui |
Zig, C lang. | Compiler | Dear_Bindings_Build |
Zig | Compiler | ImGuinZ |
NeLua | Compiler | NeLuaImGui |
Python | Script | DearPyGui for 32bit WindowsOS Binary |