About
Save your precious pixels with this Mandelbrot fractal screensaver for Picotron.
Watch as the multi-coloured infinate fractal goodness stylishly reveals the meaning of life*
*(not guaranteed)

Installation
Save this into /appdata/system/screensavers
to add it to your permanent screensaver list in Settings.
(copying to "system/..." will not be permanent, as system contents reset on each Picotron restart)
If you don't have the above path yet, you can start from the default system ones, using the following command:
cp /system/screensavers /appdata/system/screensavers
Here's a thread to tutorialize how to do the most common Pico-8 commands in Picotron. Show how they are the same, or how they may be slightly different.
So:
--spr
--sspr
--sfx
--music
--rects, circs, lines
--pset, pget?
--mset, mget?
--fget, fset?
--math stuffs
--etc.
Please note if a) the command is part of the list of Picotron commands and b) if it currently works (or may just not be implemented yet).
Picotron API functions: https://www.lexaloffle.com/bbs/?pid=143245#p
Please no questions, only answers here. Thanks!


Me as Lostcadesoft will be back on game making on this new cool #picotron. This is my snippet for use of sprite based font! (originaly snippet by @thattomhall on Pico-8) This is the font I'll use on my first games's release on #picotron. He're my share, use it if you like it. I love that classic Namco/Nintendo font!
-The SPRINT x/y cordinate are in 8x8 boundaries caracter block.
-uppercase letters only supported.
If some of you guys got something better about custom 8x8 retro font snippet, up to you!
Enjoy!




update: there are basically 3 tools that are relevant here:
- this tool (sprimp) -- maybe still useful, but superceded by p8x8:
- p8x8: a tool to fully convert PICO-8 carts to Picotron carts (some assembly required) -- this grew out of sprimp
- my aseprite exporter plugin -- still useful
You probably want to check out p8x8 instead, but I'm leaving this thread as it is since it may still be useful or interesting to some people.
tada! now you can import pico8 spritesheets. and map too!
importing a .p8 file
- put your game.p8 file somewhere inside picotron's file system






I made a useful tool to look at what parameters are expected from picotron's api
You can also see in what file it is implemented and inspect the code!
It only works for functions that are implemented in lua, when it's done in c it's not visible, and some lua functions don't have much code in them and redirect a variable amount of parameters toward a c function

I also exported the list of functions with their parameters if I could find them:






I wrote Lua require
function based on the include
function found in /system/lib/head.lua:791
.
This function loads Lua modules similar to standard require found in Lua:
- it loads the file
- executes the file
- returns the module returned by included file
- caches the module, so next call to require will return already loaded module
How to use:
- put the source code of
require
function in yourmain.lua
:
function require(name) if _modules == nil then _modules={} end local already_imported = _modules[name] if already_imported ~= nil then return already_imported end local filename = fullpath(name..'.lua') local src = fetch(filename) if (type(src) ~= "string") then notify("could not include "..filename) stop() return end -- https://www.lua.org/manual/5.4/manual.html#pdf-load -- chunk name (for error reporting), mode ("t" for text only -- no binary chunk loading), _ENV upvalue -- @ is a special character that tells debugger the string is a filename local func,err = load(src, "@"..filename, "t", _ENV) -- syntax error while loading if (not func) then send_message(3, {event="report_error", content = "*syntax error"}) send_message(3, {event="report_error", content = tostr(err)}) stop() return end local module = func() _modules [ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=143480#p) |





I wanted to share a few projects that I've been working on to prove out that making low-vision / blind accessible games is possible in PICO-8!
To get to the meat of it, here are the two games that my friend and I were able to put together that we built in prep for, and as a submission to the Games for Blind Gamers game jam:
Tiger & Dragon - https://jrjurman.itch.io/tiger-dragon

Lunch Gambit - https://jrjurman.itch.io/lunch-gambit

The games require a screen reader if you want to hear the text being read aloud, but the long and short of it is that the text on the right will be read out to screen readers. For people who might have trouble reading the text or need especially large fonts, the right side panel respects the font-size of the page, and allows players to zoom in if that would help readability.
The way that we were able to accomplish this is by having a special HTML template that reads the GPIO output from PICO-8 - pico-a11y-template


A limited graphic program for Picotron (stripped-down recreation of Desmos)
Planned features
- ❌ Make the different functions editable within the program
- ✅ Optimize rendering of axis and increments
- ❌ Improved UI (zoom slider, collapsible sidebar)
- ❌ Have the coordinates of a point appear when cursor hovers above a line
- ❌ Preferences menu to change theme, increments etc.
Version 0.2
- Added infinite axis and increments
- Equations are now -∞ < x < ∞, upgraded from -100 < x < 100
- Equation resolution now scales with zoom (higher resolution zoomed in, lower resolution zoomed out)
PREVIOUS UPDATES

I made a handful of commandline utilities for picotron that you might find useful.
https://github.com/Rayquaza01/picotron-utilities
So far, Picotron Utilities has:
cat - print files
touch - create new files
tree - print tree view of a directory
wget - download a file using fetch()
grep - search in a file or recursively search through all files in a folder
frange - print a file or range w/ line numbers
pwd - print the current working directory
echo - print given arguments
fd - search for a file name
stat - print file status and metadata
Installing as a Yotta Package
You can install the utilities included in this cart with yotta util install #picotron_utilities





makes locs on desktop
usage: loc path (name)

put code in appdata/system/util/loc.lua
you can change file name to whatever you like, like ln.lua to use as ln
function ext(str) for i=1,#str do if (str:sub(i,i)==".") return i-1 end return #str end local orig=env().argv[1] if (not orig) print("usage: "..env().argv[0].." path (name)") exit(1) if (orig:sub(#orig)=="/") orig=orig:sub(1,#orig-1) if (orig:sub(1,1)!="/") orig=fetch("/ram/system/pwd.pod").."/"..orig if (not fstat(orig)) print("file does not exist ("..orig..")") exit(1) local name=env().argv[2] and #env().argv[2]!=0 and env().argv[2] or orig:basename() name=name:sub(1,ext(name)) local targ="/desktop/"..name..".loc" if (fstat(targ)) print("loc already exists ("..targ..")") exit(1) [ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=143431#p) |