This is a libretro core implementation. Keep in mind thats my first take on writing a libretro core and my first time using Zig.
At the moment this is a very simple game scene with a moving square which you can script using mruby.
To do so, simply edit the game.rb
file as you want.
Make sure to have Zig installed and available into your path. If you have done any changes to the mruby tree, don't forget to build it again.
cd mruby/mruby
./minirake
Build the core using zig:
zig build
Run retroach, of course it should run with any libretro front, but that's the one i'am using:
path/to/retroarch -v -L path/to/this/repo/lib/libzigretro-core.{dylib,so} ./src/game.rb
-v
option is optional i use it to debug my core since it makes retroarch verbose.
- Think to a better way to share input from core to ruby script
- Handle audio
- Build a pico8 like platform