{"id":21472662,"url":"https://github.com/dinau/luajit-platformer","last_synced_at":"2025-04-02T09:40:54.617Z","repository":{"id":210340933,"uuid":"726305312","full_name":"dinau/luajit-platformer","owner":"dinau","description":"Writing a 2D Platform Game in LuaJIT with SDL2 ","archived":false,"fork":false,"pushed_at":"2024-12-06T12:41:33.000Z","size":21252,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T00:41:38.986Z","etag":null,"topics":["game","learning-luajit","lua","luajit","nim","platformer","sdl2","sdl2-image","windows"],"latest_commit_sha":null,"homepage":"","language":"Lua","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":"2023-12-02T02:03:21.000Z","updated_at":"2024-12-06T12:41:37.000Z","dependencies_parsed_at":"2024-11-10T02:22:41.974Z","dependency_job_id":"a8a6282d-e42a-4eee-83a5-dedf71ca1b03","html_url":"https://github.com/dinau/luajit-platformer","commit_stats":null,"previous_names":["dinau/luajit-platformer"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fluajit-platformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fluajit-platformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fluajit-platformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Fluajit-platformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinau","download_url":"https://codeload.github.com/dinau/luajit-platformer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246792577,"owners_count":20834920,"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":["game","learning-luajit","lua","luajit","nim","platformer","sdl2","sdl2-image","windows"],"created_at":"2024-11-23T10:01:24.207Z","updated_at":"2025-04-02T09:40:54.599Z","avatar_url":"https://github.com/dinau.png","language":"Lua","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- [LuaJIT-Platformer](#luajit-platformer)\n  - [Support OS](#support-os)\n  - [Download](#download)\n  - [Run Tutorials](#run-tutorials)\n  - [Install and run from sources](#install-and-run-from-sources)\n  - [Reference](#reference)\n  - [Tools version](#tools-version)\n  - [SDL Game tutorial platfromer project](#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### LuaJIT-Platformer\n\n---\n\nWriting a 2D Platform Game in LuaJIT with SDL2.\n\nThis repository has been inherited from [nim-platformer](https://github.com/def-/nim-platformer) project.\n- Document  \nEnglish:  https://hookrace.net/blog/writing-a-2d-platform-game-in-nim-with-sdl2/  \nJapanese: 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/luajit-platformer/blob/main/img/platformer-luajit-sdl2.gif)\n\n#### Support OS\n\n---\n\nWindows10 or later\n\n\n#### Download\n\n---\n\n- Latest for Windows 32bit / 64bit common  \n   2024/11: [luajit-platformer-0.8.5.zip](https://bitbucket.org/dinau/storage/downloads/luajit-platformer-0.8.5.zip)  \n   - old version  \n   2024/11: [luajit-platformer-0.8.4.zip](https://bitbucket.org/dinau/storage/downloads/luajit-platformer-0.8.4.zip)\n\n~~- Windows 64bit version in progress   \n2024/11: luajit-platformer-0.9.0.zip~~\n\n#### Run Tutorials\n\n---\n\n1. Unzip downloaded file\n1. On MS-DOS command line, \n\n   ```sh\n   cd luajit-paltformer-0.8.5 \n   cd tutorial\n   platformer_part5.bat      # For instance execute platformer_part5.lua\n   ```\n\n- Key operation  \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[platformer_part1.lua](tutorial/platformer_part1.lua)  \n[platformer_part2.lua](tutorial/platformer_part2.lua)  \n[platformer_part3.lua](tutorial/platformer_part3.lua)  \n[platformer_part4.lua](tutorial/platformer_part4.lua)  \n[platformer_part5.lua](tutorial/platformer_part5.lua) (2023/12) From here it can move the item with key operation.  \n[platformer_part6.lua](tutorial/platformer_part6.lua)  \n[platformer_part7.lua](tutorial/platformer_part7.lua)  \n[platformer_part8.lua](tutorial/platformer_part8.lua)  \nplatformer_part9.lua - In progress TODO  \n\n\n#### Install and run from sources\n\n---\n\n```sh\ngit clone --recursive https://github.com/dinau/luajit-platformer\ncd tutorial\n... same above\n```\n\n#### Reference\n\n---\n\n| Dll            | URL                                                                |\n|:---------------|:-------------------------------------------------------------------|\n| SDL2.dll       | https://github.com/libsdl-org/SDL/releases/tag/release-2.28.5      |\n| SDL2_image.dll | https://github.com/libsdl-org/SDL_image/releases/tag/release-2.6.3 |\n| SDL2_ttf.dll   | https://github.com/libsdl-org/SDL_ttf/releases/tag/release-2.20.2  |\n| LuaJIT-SDL2    | https://github.com/sonoro1234/LuaJIT-SDL2                          |\n\n\n#### Tools version\n\n---\n\n- LuaJIT 2.1.1697887905 -- Copyright (C) 2005-2023 Mike Pall.\n- SDL2 v2.28.5\n- SDL2_image v2.6.3\n- SDL2_ttf v2.20.2\n- gcc.exe (Rev2, Built by MSYS2 project) 13.2.0\n\n\n#### SDL Game tutorial platfromer project\n\n---\n\n![ald](https://github.com/dinau/nelua-platformer/raw/main/img/platformer-nelua-sdl2.gif)\n\n| Language             |          | Project                                                            |\n| -------------------: | :---:    | :----------------------------------------------------------------: |\n| **Nim**              | Compiler | [Nim-Platformer](https://github.com/dinau/nim-platformer)          |\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","funding_links":[],"categories":["Other link"],"sub_categories":["Update / Downgrade  ImGui/CImGui"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinau%2Fluajit-platformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinau%2Fluajit-platformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinau%2Fluajit-platformer/lists"}