Log In  

BBS > Community Superblog
All Users | Following | GIFs | Postcarts | Off-site

Cart #multtaskchicken-6 | 2024-04-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
0 comments


Pong but smol.

Cart #mini_pong-0 | 2024-03-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
0 comments


Snake game in PICO-8.

Cart #snakegame-0 | 2024-03-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
0 comments


Cart #sandandotherstuff-0 | 2024-03-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
15

A lil sand game I made when checking out cellular automata.

Controls
Mouse1: Place
Mouse2: Erase
X/Z: Material select

15
2 comments


Pong in PICO-8.

Cart #pong_game-1 | 2024-03-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

2
0 comments


Cart #function_tool-2 | 2024-03-17 | Embed ▽ | License: CC4-BY-NC-SA
26


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:

table	USERDATA
C	USERDATA:__add
C	USERDATA:__band
C	USERDATA:__bor
C	USERDATA:__bxor
C	USERDATA:__div
C	USERDATA:__index
C	USERDATA:__len
C	USERDATA:__mod
C	USERDATA:__mul
C	USERDATA:__newindex
C	USERDATA:__sub
C	USERDATA:__tostring
C	USERDATA:add
C	USERDATA:attribs
C	USERDATA:band
C	USERDATA:bor
C	USERDATA:bxor
C	USERDATA:clear
C	USERDATA:convert
C	USERDATA:copy
C	USERDATA:cross
C	USERDATA:distance
C	USERDATA:div
C	USERDATA:dot
C	USERDATA:get
C	USERDATA:height
C	USERDATA:magnitude
C	USERDATA:matmul
C	USERDATA:matmul2d
C	USERDATA:matmul3d
C	USERDATA:mod
C	USERDATA:mul
C	USERDATA:set
C	USERDATA:sort
C	USERDATA:sub
C	USERDATA:transpose
C	USERDATA:width
table	_G
string	_VERSION
C	_fetch_local
C	_fetch_remote
Lua	_process_event_messages ()
C	_signal
C	_store_local
C	_update_buttons
Lua	abs (a)
C	add
Lua	add_line (s)
Lua	all (c)
C	apply_diff
C	assert
C	atan2
C	blit
C	btn
C	btnp
C	camera
C	cd
C	chr
C	circ
C	circfill
Lua	clear_key (scancode)
C	clip
C	cls
C	cocreate
C	collectgarbage
C	color
Lua	coresume (c, ...)
table	coroutine
C	coroutine:close
C	coroutine:create
C	coroutine:isyieldable
C	coroutine:resume
C	coroutine:running
C	coroutine:status
C	coroutine:wrap
C	coroutine:yield
C	cos
C	costatus
C	count
Lua	cp (f0, f1)
C	create_diff
Lua	create_gui (head_el)
Lua	create_process (prog_name, env_patch, do_debug)
Lua	create_undo_stack (, ...)
C	cursor
Lua	date (format)
table	debug
C	debug:debug
C	debug:gethook
C	debug:getinfo
C	debug:getlocal
C	debug:getmetatable
C	debug:getregistry
C	debug:getupvalue
C	debug:getuservalue
C	debug:setcstacklimit
C	debug:sethook
C	debug:setlocal
C	debug:setmetatable
C	debug:setupvalue
C	debug:setuservalue
C	debug:traceback
C	debug:upvalueid
C	debug:upvaluejoin
C	del
C	deli
C	dtime
Lua	env ()
C	error
Lua	exit (exit_code)
Lua	fetch (location, ...)
Lua	fetch_metadata (filename)
C	fget
C	fillp
C	flip
C	flr
Lua	foreach (c, _f)
C	fset
C	fstat
C	fullpath
Lua	function_info (fun)
C	get
Lua	get_clipboard ()
Lua	get_display ()
Lua	get_draw_target ()
Lua	get_spr (index)
C	getmetatable
Lua	include (filename)
C	ipairs
Lua	key (scancode)
Lua	keyp (scancode)
C	line
C	load
C	ls
Lua	map (ud, b, ...)
table	math
C	math:abs
C	math:acos
C	math:asin
C	math:atan
C	math:ceil
C	math:cos
C	math:deg
C	math:exp
C	math:floor
C	math:fmod
number	math:huge
C	math:log
C	math:max
number	math:maxinteger
C	math:min
number	math:mininteger
C	math:modf
number	math:pi
C	math:rad
C	math:random
C	math:randomseed
C	math:sin
C	math:sqrt
C	math:tan
C	math:tointeger
C	math:type
C	math:ult
Lua	max (a, b)
C	memcpy
Lua	memmap (addr, a, offset, len)
C	memset
Lua	menuitem (m, a, b)
Lua	mid (a, b, c)
Lua	min (a, b)
Lua	mkdir (p)
C	mount
Lua	mouse ()
C	music
Lua	mv (src, dest)
C	next
C	note
Lua	notify (msg_str)
Lua	on_event (event, f)
C	ord
C	oval
C	ovalfill
C	pack
C	pairs
C	pal
C	palt
C	pcall
C	peek
C	peek2
C	peek4
C	peek8
Lua	peektext (i)
C	pget
C	pid
Lua	pod (obj, flags, meta)
C	poke
C	poke2
C	poke4
C	poke8
Lua	print (str, x, y, col)
Lua	printh (str)
C	pset
C	pwd
Lua	pwf ()
C	rawequal
C	rawget
C	rawlen
C	rawset
Lua	readtext (clear_remaining)
C	rect
C	rectfill
Lua	reset ()
Lua	rm (f0)
C	rnd
C	select
C	send_message
C	set
Lua	set_clipboard (, ...)
Lua	set_draw_target (d)
Lua	set_spr (index, s, flags_val)
C	setmetatable
C	sfx
Lua	sgn (a)
C	sin
C	split
C	spr
C	sqrt
C	srand
C	sspr
C	stat
Lua	stop (txt, ...)
Lua	store (location, obj, meta)
Lua	store_metadata (filename, meta)
table	string
Lua	string:basename (self)
C	string:byte
C	string:char
C	string:dump
Lua	string:ext (self)
C	string:find
C	string:format
C	string:gmatch
C	string:gsub
Lua	string:hloc (self)
C	string:len
C	string:lower
C	string:match
C	string:pack
C	string:packsize
Lua	string:path (self)
C	string:rep
C	string:reverse
C	string:sub
C	string:unpack
C	string:upper
Lua	sub (str, ...)
C	t
table	table
C	table:concat
C	table:insert
C	table:move
C	table:pack
C	table:remove
C	table:unpack
Lua	theme (which)
C	time
C	tline3d
C	tokenoid
Lua	tonum (, ...)
C	tonumber
Lua	tostr (val, as_hex)
C	tostring
C	type
Lua	unmap (a)
C	unpack
C	unpod
C	userdata
table	utf8
C	utf8:char
string	utf8:charpattern
C	utf8:codepoint
C	utf8:codes
C	utf8:len
C	utf8:offset
C	vec
Lua	vid (mode)
C	warn
Lua	window (w, h, attribs)
Lua	wrangle_working_file (save_state, load_state, untitled_filename, get_hlocation, set_hlocation)
C	yield

26
6 comments


Cart #require-0 | 2024-03-17 | Embed ▽ | License: CC4-BY-NC-SA
16

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 your main.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)
16
3 comments


Anybody know what the minimum system requirements are? I've seen Pico-8 running on 32bit Win7 netbooks and was wondering if Picotron would as well.

1
1 comment


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

[ Continue Reading.. ]

5
1 comment


Cart #pico_ripples-1 | 2024-03-17 | Embed ▽ | License: CC4-BY-NC-SA
23

A nice little raindrops-on-a-pond type of effect. Though perhaps with more of a shifting rainbow color scheme than most ponds.

Changelog

v1.01: Fixed initial splash height so smaller ripples should be more visible. This, to my eye, adds some pleasing visual variety.

23
10 comments


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.

Cart #picographv2-0 | 2024-03-17 | Embed ▽ | No License
8


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

[ Continue Reading.. ]

8
1 comment


Cart #picotron_utilities-0 | 2024-03-22 | Embed ▽ | License: CC4-BY-NC-SA
24

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

Installing as a Yotta Package

You can install the utilities included in this cart with yotta util install #picotron_utilities

Installing as a Bundle Command

You can install this cartridge as a bundle command by saving it to your utility path.

[ Continue Reading.. ]

24
6 comments


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)
3
0 comments


While poking around in Picotron, I found myself wanting to view the contents of a file without opening it in the editor (via the edit command), so I wrote a little cat function. In order to implement it I needed to grab the current working directory so I went ahead and implemented a pwd command as well. Both of these are very simple and really just wrap existing Picotron functions for ease of use in the command line.

-=cat=-

local argv = env().argv
local foldr = env().path

if #argv < 1 or #argv > 1 then
    print("usage: cat filename")
else
    local f = foldr.."/"..argv[1]
    print(fetch(f))
end

-=pwd=-

local foldr = env().path

print(foldr) 

To implement these, just save each in it's own project in the /appdata/system/util folder, using the name of each command as the filename- so copy the code for cat into 'main.lua' and cd into /appdata/system/util and type save cat. Same goes for pwd. Once you do this, you can run them straight from the Picotron command line.

[ Continue Reading.. ]

4
3 comments


Software Standards

Hello, I'm here to propose some software standards. This post isn't supposed to be all about me, I want the community to come together to make sure we're not stepping on each others toes whenever we make software, games, ect. Currently it's sorta the wild west, so the only thing I can suggest (which I've done with SLATE) is that we put application installs and preferences inside of their own folder within the /appdata/ folder.

I don't want to make standards nobody is going to use, so please comment on this post to talk about any standards for anything that could be useful to everyone.

Personally a new standard I've been thinking of is creating a central libraries folder that software can prompt downloads for libraries it might need, so that no one has to reinvent the wheel every time they make an application (although it is so early I don't think this needs to be a focus yet).

7
8 comments


Some Discord servers have been quite busy lately and we've been discovering (less trivial) things here and there than the officially documented things and I thought it was good to have them available in the BBS instead of losing them in a Discord server's chat log. I'll try to update this post as more discoveries are uncovered.

Don't hesitate to write more discoveries in the thread.

Notice

At the moment I'm writing this post, we're running 0.1.0b, stuff might change in the future, nothing is set in stone for now.

POD is data, data is POD

Most of the file one will find on their systems are just POD files with an extension. The extension allows the OS to determine which app to launch but the internal data seems to work the same for all formats: they're PODs.

podtree (your_file) will pop a tool window containing a tree interface with the guts of your file. So you can determine how those file are formatted.

For instance the default drive.loc file, once opened, will show that it has only one property: location. So creating a table looking like that my_table = {location="/path/to/a/program.p64"} and then saving it with store(my_shortcut.loc, my_table) will efectively crete a new shortcut.

[ Continue Reading.. ]

42
24 comments


Has anyone figured out how to make a http GET request in Picotron? I saw it listed in the roadmap for the 3/14 release but couldn't find a function in the list provided by NuSan here.

Thanks! :D

4
9 comments


Cart #sillydvd-0 | 2024-03-16 | Embed ▽ | License: CC4-BY-NC-SA
3

yo !!
first pico game !
bounce the dvd logo around and get money
use money to buy upgrades

i usually run it in the background while i code

if you find any bugs put them in the comments !
its scuffed, ik, sorry.

3
1 comment


so the new picotron is finally out, and the browser version is no where to be seen! even though pico-8 and voxatron had browser versions! but I think that the reason lexaloffle cant make the browser version is just because they can't figure out what to do with the workstation, and I don't blame them! it would be hard to make it a seamless transition between the full version and the browser version, and the only way I could ever think of is using a default background and limiting use to just the cartridge. I hope lexaloffle will make the browser version one day to open the field to wider audiences!

3 comments


Cart #duskchild_wp-0 | 2024-03-16 | Embed ▽ | License: CC4-BY-NC-SA
9

An animated wallpaper using graphics from Dusk Child.

Made just to learn picotron a little bit, and it was fun!

9
0 comments




Top    Load More Posts ->