Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dinau/luajit-platformer
Writing a 2D Platform Game in LuaJIT with SDL2
https://github.com/dinau/luajit-platformer
game learning-luajit lua luajit nim platformer sdl2 sdl2-image windows
Last synced: 3 days ago
JSON representation
Writing a 2D Platform Game in LuaJIT with SDL2
- Host: GitHub
- URL: https://github.com/dinau/luajit-platformer
- Owner: dinau
- License: mit
- Created: 2023-12-02T02:03:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-06T12:41:33.000Z (2 months ago)
- Last Synced: 2024-12-15T01:43:51.702Z (about 2 months ago)
- Topics: game, learning-luajit, lua, luajit, nim, platformer, sdl2, sdl2-image, windows
- Language: Lua
- Homepage:
- Size: 20.3 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
- [LuaJIT-Platformer](#luajit-platformer)
- [Support OS](#support-os)
- [Download](#download)
- [Run Tutorials](#run-tutorials)
- [Install and run from sources](#install-and-run-from-sources)
- [Reference](#reference)
- [Tools version](#tools-version)
- [SDL Game tutorial platfromer project](#sdl-game-tutorial-platfromer-project)
- [Other project](#other-project)### LuaJIT-Platformer
---
Writing a 2D Platform Game in LuaJIT with SDL2.
This repository has been inherited from [nim-platformer](https://github.com/def-/nim-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](https://ddnet.org/skins)
![alt](https://github.com/dinau/luajit-platformer/blob/main/img/platformer-luajit-sdl2.gif)
#### Support OS
---
Windows10 or later
#### Download
---
- Latest for Windows 32bit / 64bit common
2024/11: [luajit-platformer-0.8.5.zip](https://bitbucket.org/dinau/storage/downloads/luajit-platformer-0.8.5.zip)
- old version
2024/11: [luajit-platformer-0.8.4.zip](https://bitbucket.org/dinau/storage/downloads/luajit-platformer-0.8.4.zip)~~- Windows 64bit version in progress
2024/11: luajit-platformer-0.9.0.zip~~#### Run Tutorials
---
1. Unzip downloaded file
1. On MS-DOS command line,```sh
cd luajit-paltformer-0.8.5
cd tutorial
platformer_part5.bat # For instance execute platformer_part5.lua
```- Key operation
| Key | function |
| :---: | :--- |
| Up,Space, J, K | Jump |
| Left, A, H | Left |
| Right, D, L | Right |
| R | Restart |
| Q | Quit |- Tutorial sources
[platformer_part1.lua](tutorial/platformer_part1.lua)
[platformer_part2.lua](tutorial/platformer_part2.lua)
[platformer_part3.lua](tutorial/platformer_part3.lua)
[platformer_part4.lua](tutorial/platformer_part4.lua)
[platformer_part5.lua](tutorial/platformer_part5.lua) (2023/12) From here it can move the item with key operation.
[platformer_part6.lua](tutorial/platformer_part6.lua)
[platformer_part7.lua](tutorial/platformer_part7.lua)
[platformer_part8.lua](tutorial/platformer_part8.lua)
platformer_part9.lua - In progress TODO#### Install and run from sources
---
```sh
git clone --recursive https://github.com/dinau/luajit-platformer
cd tutorial
... same above
```#### Reference
---
| Dll | URL |
|:---------------|:-------------------------------------------------------------------|
| SDL2.dll | https://github.com/libsdl-org/SDL/releases/tag/release-2.28.5 |
| SDL2_image.dll | https://github.com/libsdl-org/SDL_image/releases/tag/release-2.6.3 |
| SDL2_ttf.dll | https://github.com/libsdl-org/SDL_ttf/releases/tag/release-2.20.2 |
| LuaJIT-SDL2 | https://github.com/sonoro1234/LuaJIT-SDL2 |#### Tools version
---
- LuaJIT 2.1.1697887905 -- Copyright (C) 2005-2023 Mike Pall.
- SDL2 v2.28.5
- SDL2_image v2.6.3
- SDL2_ttf v2.20.2
- gcc.exe (Rev2, Built by MSYS2 project) 13.2.0#### SDL Game tutorial platfromer project
---
![ald](https://github.com/dinau/nelua-platformer/raw/main/img/platformer-nelua-sdl2.gif)
| Language | | Project |
| -------------------: | :---: | :----------------------------------------------------------------: |
| **Nim** | Compiler | [Nim-Platformer](https://github.com/dinau/nim-platformer) |
| **LuaJIT** | Script | [LuaJIT-Platformer](https://github.com/dinau/luajit-platformer) |
| **Nelua** | Compiler | [NeLua-Platformer](https://github.com/dinau/nelua-platformer) |#### Other project
---
| Language | | Project |
| -------------------: | :---: | :----------------------------------------------------------------: |
| **Nim** | Compiler | [ImGuin](https://github.com/dinau/imguin), [Nimgl_test](https://github.com/dinau/nimgl_test), [Nim_implot](https://github.com/dinau/nim_implot) |
| **Lua** | Script | [LuaJITImGui](https://github.com/dinau/luajitImGui) |
| **Zig**, C lang. | Compiler | [Dear_Bindings_Build](https://github.com/dinau/dear_bindings_build) |
| **Zig** | Compiler | [ImGuinZ](https://github.com/dinau/imguinz) |
| **NeLua** | Compiler | [NeLuaImGui](https://github.com/dinau/neluaImGui) |
| **Python** | Script | [DearPyGui for 32bit WindowsOS Binary](https://github.com/dinau/DearPyGui32/tree/win32) |