12-05-2019, 12:12 AM
(This post was last modified: 12-05-2019, 08:26 PM by megamarc.
Edit Reason: Add screenshot
)
I'm working on an experimental version of tilengine. It's a libretro core with loadable games written in lua. Libretro cores are plugins that can be run inside Retroarch emulation environment, which provides unified input and windowing with post-processing shaders.
To be able to load many tilengine-based games from a single core, I integrated luajit parser inside it, so the game logic is implemented in external LUA script. This script must define the following items:
User -> RetroArch <-> tilengine_libretro <-> game.lua
Maybe this experiment is a dead end, but it looks promising and it's a great integration example.
You can check progress in this GitHub branch:
https://github.com/megamarc/Tilengine/tree/libretro
This is the basic "game":
https://github.com/megamarc/Tilengine/bl...e/game.lua
Let me know what you think
To be able to load many tilengine-based games from a single core, I integrated luajit parser inside it, so the game logic is implemented in external LUA script. This script must define the following items:
- a config {} table with initialization parameters
- a game_load() function that loads assets and performs initial game setup
- a game_loop(frame) function that gets executed every frame
- a game_unload() function that gets called when closing the game
User -> RetroArch <-> tilengine_libretro <-> game.lua
Maybe this experiment is a dead end, but it looks promising and it's a great integration example.
You can check progress in this GitHub branch:
https://github.com/megamarc/Tilengine/tree/libretro
This is the basic "game":
https://github.com/megamarc/Tilengine/bl...e/game.lua
Let me know what you think