{"id":21457784,"url":"https://github.com/dinau/nelua-platformer","last_synced_at":"2026-01-31T15:02:08.664Z","repository":{"id":263121801,"uuid":"886107657","full_name":"dinau/nelua-platformer","owner":"dinau","description":"Nelua game tutorial with SDL2","archived":false,"fork":false,"pushed_at":"2024-12-06T13:06:45.000Z","size":8284,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T17:03:18.125Z","etag":null,"topics":["examples","game","lua","luajit","nelua","nim","sdl2","tutorial"],"latest_commit_sha":null,"homepage":"","language":"Makefile","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-11-10T08:03:59.000Z","updated_at":"2024-12-06T13:06:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"1cc46d1a-10d7-4ecf-bc21-8be7b17cf392","html_url":"https://github.com/dinau/nelua-platformer","commit_stats":null,"previous_names":["dinau/nelua-platformer"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dinau/nelua-platformer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fnelua-platformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fnelua-platformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fnelua-platformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fnelua-platformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinau","download_url":"https://codeload.github.com/dinau/nelua-platformer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fnelua-platformer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28946063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["examples","game","lua","luajit","nelua","nim","sdl2","tutorial"],"created_at":"2024-11-23T06:07:02.828Z","updated_at":"2026-01-31T15:02:08.649Z","avatar_url":"https://github.com/dinau.png","language":"Makefile","funding_links":[],"categories":["Other link"],"sub_categories":["Update / Downgrade  ImGui/CImGui"],"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- [NeLua-Platformer](#nelua-platformer)\n  - [Support OS](#support-os)\n  - [Prerequisites](#prerequisites)\n  - [Run tutorials](#run-tutorials)\n  - [Key operation](#key-operation)\n  - [Tutorial sources](#tutorial-sources)\n  - [Other SDL2 headers for Nelua](#other-sdl2-headers-for-nelua)\n  - [Tools version](#tools-version)\n  - [Reference](#reference)\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### NeLua-Platformer\n\n---\n\nTutorial: Writing a 2D Platform Game in [NeLua language](https://github.com/edubart/nelua-lang) with SDL2.\n\nThis repository has been inherited from\n[Nim-Platformer](https://github.com/def-/nim-platformer) and [LuaJIT-Platformer](https://github.com/dinau/luajit-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](https://github.com/dinau/nelua-platformer/raw/main/img/platformer-nelua-sdl2.gif)\n\n#### Support OS\n\n---\n\nWindows10 or later\n\n\n#### Prerequisites\n\n---\n\n1. Install [MSys2/MinGW](https://www.msys2.org/) \n1. Install [NeLua](https://nelua.io/installing/)\n1. Install SDL2 libraries\n\n   ```sh\n   pacman -S mingw-w64-x86_64-{SDL2,SDL2_image,SDL2_ttf}\n   ```\n\n   or if you use `ucrt` libraries,\n\n   ```sh\n   pacman -S mingw-w64-ucrt-x86_64-{SDL2,SDL2_image,SDL2_ttf}\n   ```\n\n- Other tools\n\n   ```sh\n   pacman -S make\n   ```\n\n   Git command installed\n\n#### Run tutorials\n\n---\n\n1. Clone from git\n\n   ```sh\n   git clone  https://github.com/dinau/nelua-platformer\n   ```\n\n1. Build and run\n\n   ```sh\n   cd nelua-paltformer\n   cd tutorial\n   make 8r      # Build and run platformer_part8.nelua\n   ```\n\n   or  enable runtime checking and debug build and run\n\n   ```sh\n   pwd tutorial\n   nelua paltformer_part8.nelua  \n   ```\n\n1. Only build a source\n   ```sh\n   pwd tutorial\n   make 8       # Build platformer_part8.nelua\n   ```\n1. Build all tutorial sources\n\n   ```sh\n   pwd tutorial\n   make build   # Build from part1 to part8 sources\n   ```\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     |\n\n#### Tutorial sources  \n\n---\n\n[platformer_part1.nelua](tutorial/platformer_part1.nelua)  \n[platformer_part2.nelua](tutorial/platformer_part2.nelua)  \n[platformer_part3.nelua](tutorial/platformer_part3.nelua)  \n[platformer_part4.nelua](tutorial/platformer_part4.nelua)  \n[platformer_part5.nelua](tutorial/platformer_part5.nelua) : From here it can move the item with key operation.  \n[platformer_part6.nelua](tutorial/platformer_part6.nelua)  \n[platformer_part7.nelua](tutorial/platformer_part7.nelua)  \n[platformer_part8.nelua](tutorial/platformer_part8.nelua)  \nplatformer_part9.nelua : In progress. TODO  \n\n#### Other SDL2 headers for Nelua\n\n---\n\nThese header files\n\n```sh\nsdl2.nelua  \nsdl2_image.nelua  \nsdl2_ttf.nelua   \n```\n\nhave thankfully been just copied form [nelua-decl libraries project](https://github.com/edubart/nelua-decl).\n\n\n#### Tools version\n\n---\n- Nelua 0.2.0-dev\n- gcc.exe (Rev2, Built by MSYS2 project) 14.2.0\n- SDL2 v2.30.9\n- SDL2_image v2.8.2\n- SDL2_ttf v2.22.0\n\n#### Reference\n\n---\n\n- SDL2.dll  https://github.com/libsdl-org/SDL/releases/\n- SDL2_image.dll  https://github.com/libsdl-org/SDL_image/releases/\n- SDL2_ttf.dll  https://github.com/libsdl-org/SDL_ttf/releases/\n- LuaJIT-SDL2  https://github.com/sonoro1234/LuaJIT-SDL2\n\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\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinau%2Fnelua-platformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinau%2Fnelua-platformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinau%2Fnelua-platformer/lists"}