Coder Social home page Coder Social logo

ps4-p8's Introduction

PS4-P8

An emulator to run pico-8 cartridges on a PS4.

Project based on OpenOrbis PS4 Toolchain

Pico-8 is a Fantasy Programmable Console made by Lexaloffle Games. This emulator is compatible with built pico-8 cartridges in PNG format, to build your own games you will need the original Pico-8 console

screenshot

Status

Not finished - Compatibility is still limited, but there are many cartridges it can run already.

Features

  • Modified lua interpreter compatible with pico8's lua.
  • 16-bit fixed point decimal arithemtic just like pico8.
  • Save states (at the moment simplistic, one save state per cartridge).
  • The most used predefined pico8 functions are implemented: 90 functions implemented out of 105

It comes with a set of bundled games which have been used to improve the compatibility.

More .p8.png cartridges can be bundled with the .pkg file by adding them into /assets/misc folder, or they will be loaded in runtime from PS4's /data/p8-cartridges folder.

  • print: It prints text on the screen, but it's missing some P8SCII control codes, non-ascii characters.
  • Sprites: Done
  • Sfx: Playable. Room of improvement for sound quality, and sound filters are missing (damp, buzz, reverb, etc.)
  • Music: Playable.
  • Menu: WIP.
  • Memory manipulation: Almost complete.
  • Maps: Done
  • Custom P8-Lua: Done

A list of some playable cartridges can be found here

Building

The project is cross-platform for Windows + MacOS + PS4.

You'll need OpenOrbis PS4 Toolchain installed with its dependencies (.NET Core) and clang++.

You'll need to add the external libraries in ${SolutionDir}/lib:

Additionally, to run it on windows, you will need:

Windows

Run with visual studio. First build ${SolutionDir}/lua project, then ${SolutionDir}/pico8_ps4.

PS4

Run ./build.bat - First of ${SolutionDir}/lua project, then ${SolutionDir}/pico8_ps4.

License

External code used

Special thanks to:

  • Bucanero - The code under http.cpp is based from code on apolo-ps4 GPL v3

External tools and dependencies used

Bundled cartridges

PS4-P8

MIT

Copyright 2021 Victor Oliva

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

ps4-p8's People

Contributors

voliva avatar lorsanta avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.