https://github.com/capsadmin/love2d-nattlua
love2d game written in nattlua
https://github.com/capsadmin/love2d-nattlua
Last synced: 11 months ago
JSON representation
love2d game written in nattlua
- Host: GitHub
- URL: https://github.com/capsadmin/love2d-nattlua
- Owner: CapsAdmin
- Created: 2022-05-26T22:47:21.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-01T00:17:50.000Z (about 4 years ago)
- Last Synced: 2025-03-16T02:28:07.924Z (over 1 year ago)
- Language: Lua
- Size: 329 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This a löve example written in Nattlua (lua with a typesystem and some other things)
First clone [nattlua](https://github.com/CapsAdmin/NattLua) somewhere and run
```
luajit build.lua
luajit install.lua
luajit build.lua vscode # optional if you want the language extension
```
Then you can run the following commands:
* `nattlua build-api` build and update love type defintions from https://github.com/love2d-community/love-api
* `nattlua build` build dist/main.lua from src/main.nlua
* `nattlua run` run the output with love
running `nattlua build` will build `dist/main.lua` which is a single lua file based on the imports of `src/main.nlua` and type information stripped.