Libretro core with loadable LUA games
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:
- 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
The input is still not implemented, so only non-interactive demos are working right now. And as the system depends on luajit and retroarch, only Windows versions are tested.
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
This screenshot shows the basic LUA game loaded by tilengine_libretro core, running inside RetroArch with crt-lottes shader enabled:
Let me know what you think!
Get Tilengine
Tilengine
2D retro grapics engine with true raster effects for creating 8/16 bit style games
Status | Released |
Category | Tool |
Author | megamarc |
Genre | Educational |
Tags | 16-bit, 2D, 8-Bit, Arcade, Game engine, Retro, sprites, Tilemap based tools |
Languages | English |
More posts
- Release 2.9.1 - Sprite pivot & layer enable12 days ago
- Release 2.9.0 - World mode28 days ago
- Release 2.8.5 - Small bugfixesAug 07, 2020
- Apple OSX build availableMay 16, 2020
- Release 2.8.4 - Simplified APIMay 14, 2020
- Release 2.8.2 - Enhanced TMXMay 09, 2020
- Release 2.8.0 - revamped animation engineMay 03, 2020
- Release 2.7.0 - sprite list order & sprite maskingApr 26, 2020
- Release 2.6.0 - Enhanced asset loaderApr 22, 2020
- Release 2.5.0 - Image-based tilesets for object layersApr 16, 2020
Leave a comment
Log in with itch.io to leave a comment.