Skip to content

A minimal libretro core implementation in Zig integrating Mruby as scripting language

Notifications You must be signed in to change notification settings

hfabre/zigretro-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zigretro-core

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.

Usage

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.

Steps

  • Think to a better way to share input from core to ruby script

Very uncertain next steps

  • Handle audio
  • Build a pico8 like platform

About

A minimal libretro core implementation in Zig integrating Mruby as scripting language

Resources

Stars

Watchers

Forks

Packages

No packages published