{"id":22534934,"url":"https://github.com/dinau/zig-platformer","last_synced_at":"2025-08-22T13:32:44.958Z","repository":{"id":266939739,"uuid":"899818716","full_name":"dinau/zig-platformer","owner":"dinau","description":"Writing a 2D Platform Game in  Zig language with SDL","archived":false,"fork":false,"pushed_at":"2025-03-17T02:55:33.000Z","size":6966,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T03:32:38.217Z","etag":null,"topics":["build","dev","devel","game","learning","platformer","sdl2","sdl3","stb","stb-image","tutorial","zig"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dinau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-07T05:11:12.000Z","updated_at":"2025-03-17T02:55:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca8af4d1-b1e9-43cb-adea-3557e7c06a46","html_url":"https://github.com/dinau/zig-platformer","commit_stats":null,"previous_names":["dinau/zig-platformer"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fzig-platformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fzig-platformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fzig-platformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fzig-platformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinau","download_url":"https://codeload.github.com/dinau/zig-platformer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245978279,"owners_count":20703678,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build","dev","devel","game","learning","platformer","sdl2","sdl3","stb","stb-image","tutorial","zig"],"created_at":"2024-12-07T10:05:55.514Z","updated_at":"2025-08-22T13:32:44.944Z","avatar_url":"https://github.com/dinau.png","language":"C","readme":"\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Zig-Platformer](#zig-platformer)\n- [Prerequisites](#prerequisites)\n  - [Zig version](#zig-version)\n  - [Support OS](#support-os)\n  - [Build and run](#build-and-run)\n  - [Key operation](#key-operation)\n  - [Tutorial sources](#tutorial-sources)\n  - [SDL librarys](#sdl-librarys)\n  - [Other SDL game tutorial platfromer project](#other-sdl-game-tutorial-platfromer-project)\n  - [Other project](#other-project)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n### Zig-Platformer\n\n---\n\n![alt](https://github.com/dinau/zig-platformer/actions/workflows/dev_win.yml/badge.svg)  ![alt](https://github.com/dinau/zig-platformer/actions/workflows/dev_linux.yml/badge.svg)  \n\nTutorial: Writing a 2D Platform Game in [Zig language](https://ziglang.org) with SDL2 / SDL3 / SDL_ttf.\n\nThis repository has been inherited from\n[Nim-Platformer](https://github.com/def-/nim-platformer), [LuaJIT-Platformer](https://github.com/dinau/luajit-platformer) and [Nelua-Platformer](https://github.com/dinau/nelua-platformer)  project.\n   - Document  \n   English:  https://hookrace.net/blog/writing-a-2d-platform-game-in-nim-with-sdl2/  \n   Japanese: https://postd.cc/writing-a-2d-platform-game-in-nim-with-sdl2/  \n\nSkin database [https://ddnet.org/skins](https://ddnet.org/skins)\n\n![alt](img/zig-platformer-sdl3.gif)\n\n### Prerequisites\n\n#### Zig version\n\n---\n\n0.15.0-dev.1593+399bace2f\n\n#### Support OS\n\n---\n\n|      | Windows | Linux | MacOS |\n| ---  | :---:   | :---: | :---: |\n| SDL2 | v       | v     | v     |\n| SDL3 | v       | v     | ?     |\n\n- Windows10 or later  \n   - MSys2/MinGW basic commands (make, rm, cp, strip ...)\n- Linux: Debian families\n\n  ```sh\n  $ sudo apt install libopengl-dev libgl1-mesa-dev\n  $ sudo apt install libsdl2-dev libsdl2-ttf-dev\n  ```\n\n  See [SDL3 intallation on Linux](https://github.com/dinau/sdl3_nim?tab=readme-ov-file#for-linux-os)\n\n- MacOS: [P.R.](https://github.com/dinau/zig-platformer/pull/1)\n\n#### Build and run \n\n---\n\n```sh\ngit clone https://github.com/dinau/zig-platformer\ncd zig-platformer/tutorial\n```\nFor instance,\n\n```sh\ncd sdl2/part3\nmake run       \n```\nor \n\n```sh\ncd sdl2/part3\nzig build --release=fast\ncd zig-out/bin \npart3.exe\n```\n\nYou can build [SDL3](tutorial/sdl3) tutorials same as SDL2.\n\n#### Key operation\n\n---\n\n| Key            | Function  |\n| :---:          | :---      |\n| Up,Space, J, K | Jump      |\n| Left, A, H     | Left      |\n| Right, D, L    | Right     |\n| R              | Restart   |\n| Q              | Quit, Esc |\n\n#### Tutorial sources  \n\n---\n\n[sdl2p1]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl2/part1\n[sdl2p2]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl2/part2\n[sdl2p3]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl2/part3\n[sdl2p4]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl2/part4\n[sdl2p5]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl2/part5\n[sdl2p6]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl2/part6\n[sdl2p7]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl2/part7\n[sdl2p8]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl2/part8\n[sdl2p9]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl2/part9\n\n[sdl3p1]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl3/part1\n[sdl3p2]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl3/part2\n[sdl3p3]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl3/part3\n[sdl3p4]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl3/part4\n[sdl3p5]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl3/part5\n[sdl3p6]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl3/part6\n[sdl3p7]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl3/part7\n[sdl3p8]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl3/part8\n[sdl3p9]:https://github.com/dinau/zig-platformer/blob/main/tutorial/sdl3/part9\n\n|      | Part1           | Part2           | Part3\u003cbr\u003e (Showing item) | Part4           | Part5 \u003cbr\u003e(Moving item) | Part6           | Part7           | Part8\u003cbr\u003e(Almost completed) | Part9 |\n|------|-----------------|-----------------|--------------------------|-----------------|-------------------------|-----------------|-----------------|-----------------------------|-------|\n| SDL2 | [part1][sdl2p1] | [part2][sdl2p2] | [part3][sdl2p3]          | [part4][sdl2p4] | [part5][sdl2p5]         | [part6][sdl2p6] | [part7][sdl2p7] | [part8][sdl2p8]             | -     |\n| SDL3 | [part1][sdl3p1] | [part2][sdl3p2] | [part3][sdl3p3]          | [part4][sdl3p4] | [part5][sdl3p5]         | [part6][sdl3p6] | [part7][sdl3p7] | [part8][sdl3p8]             | -     |\n\n#### SDL librarys\n\n---\n\nhttps://github.com/libsdl-org/SDL/releases\n\n#### Other SDL game tutorial platfromer project\n\n---\n\n![ald](https://github.com/dinau/luajit-platformer/raw/main/img/platformer-luajit-sdl2.gif)\n\n| Language             |          | Project                                                                                                   |\n| -------------------: | :---:    | :----------------------------------------------------------------:                                        |\n| **Nim**              | Compiler | [Nim-Platformer](https://github.com/dinau/nim-platformer) / [sdl3_nim](https://github.com/dinau/sdl3_nim) |\n| **LuaJIT**           | Script   | [LuaJIT-Platformer](https://github.com/dinau/luajit-platformer)                                           |\n| **Nelua**            | Compiler | [NeLua-Platformer](https://github.com/dinau/nelua-platformer)                                             |\n| **Zig**              | Compiler | [Zig-Platformer](https://github.com/dinau/zig-platformer)                                                 |\n| **C3**               | Compiler | [C3-Platformer](https://github.com/dinau/c3-platformer) WIP                                               |\n| **Ruby**             | Script   | [Ruby-Platformer](https://github.com/dinau/ruby-platformer) WIP                                               |\n\n#### Other project\n\n---\n\n| Language             |          | Project                                                                                                                                         |\n| -------------------: | :---:    | :----------------------------------------------------------------:                                                                              |\n| **Nim**              | Compiler | [ImGuin](https://github.com/dinau/imguin), [Nimgl_test](https://github.com/dinau/nimgl_test), [Nim_implot](https://github.com/dinau/nim_implot) |\n| **Lua**              | Script   | [LuaJITImGui](https://github.com/dinau/luajitImGui)                                                                                             |\n| **Zig**, C lang.     | Compiler | [Dear_Bindings_Build](https://github.com/dinau/dear_bindings_build)                                                                             |\n| **Zig**              | Compiler | [ImGuinZ](https://github.com/dinau/imguinz)                                                                                                     |\n| **NeLua**            | Compiler | [NeLuaImGui](https://github.com/dinau/neluaImGui)                                                                                               |\n| **Python**           | Script   | [DearPyGui for 32bit WindowsOS Binary](https://github.com/dinau/DearPyGui32/tree/win32)                                                         |\n| **Ruby**             | Script   | [IgRuby-Examples](https://github.com/dinau/igruby_examples)\n","funding_links":[],"categories":["Other link"],"sub_categories":["Update / Downgrade  ImGui/CImGui"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinau%2Fzig-platformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinau%2Fzig-platformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinau%2Fzig-platformer/lists"}