Switch P8
From GameBrew
More actions
| Switch P8 | |
|---|---|
| General | |
| Author | voliva |
| Type | Computer |
| Version | 0.3.2 |
| License | MIT License |
| Last Updated | 2025/06/25 |
| Links | |
| Download | |
| Website | |
| Source | |
An emulator to run pico-8 cartridges on a Switch built on devkitPro.
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
Project status:
- This is a work-in-progress. Compatibility is still limited, but there are many cartridges it can run already.
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: Some edge cases missing.
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
Installation
Copy the .nro to sdmc:/switch/SwitchP8/.
Release 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 console's /data/p8-cartridges folder.
A list of some playable cartridges can be found here
Changelog
v0.3.2
- Fixes
fget(_, nil)tostring(float)was not showing the correct numbertonum(nil)crash,str[number]indexing was returning null.split()would convert "-" to "0"min()andmax()with nil valuespairs(nil)should return an empty iterator
- p8scii
- inline binary characters (
\^.) - inline hex characters (
\^:)
- inline binary characters (
- Cartridges used to try these
v0.3.1
- Switch version.
- Fix crash on exit, set metadata, update readme, adjust resolution.
External links
- GitHub - https://github.com/voliva/ps4-p8/
- ForTheUsers - https://hb-app.store/switch/SwitchP8