• Stars
    star
    252
  • Rank 161,312 (Top 4 %)
  • Language
    C++
  • License
    GNU General Publi...
  • Created almost 5 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PICO-8 implementation with SDL2/SDL1.2 and RetroArch back-ends

Introduction

This is an attempt to have an open source reimplementation of PICO-8 fantasy console to be used on Desktop platforms but especially wherever you want to compile it.

It was born as an attempt to make PICO-8 games playable on OpenDingux devices (GCW0, RG350, ..). It has now been extended to be compiled as a RetroArch core too.

Implementation

The emulator is written in C++11 and embeds Lua source code (to allow extensions to the language that PICO-8 has). It has a SDL2.0 back-end but a SDL1.2 back-end wouldn't be hard to implement.

Status

Currently much of the API is already working with good performance, even basic sound and music are working.

Many demos already work and even some full games.

  • All graphics functions have been implemented but not all their subfeatures,
  • All math functions have been implemented,
  • Sound functions have been implemented together with an audio renderer stack but many effects still missing
  • Common platform functions have been implemented
  • Some Lua language extensions have been implemented
  • Many quirks of the Lua extensions are implemented but some of most obscure things are still missing

Fixed arithmetic support is still missing.

Screenshots

Building

If you want to build a libretro backend:

make

If you want to build a local binary you can run:

cmake .
make

If you want to cross-compile for OpenDingux:

cmake -DOPENDINGUX=ON .
make

If you want to compile for retrofw (assuming your compiler is installed per retrofw instructions):

CROSS=/opt/mipsel-linux-uclibc/bin/mipsel-buildroot-linux-uclibc- cmake -DRETROFW=ON .
make

To build an OpenDingux OPK file once your binary is built:

mkdir -p projects/opendingux
cp -a retro8 projects/opendingux/
cd projects
./build_opk_od.sh