This is the first platformer I've made on Pico-8, featuring a character created on the Stardew Valley Discord for its first anniversary. It's pretty rough, but for a first attempt I'm rather pleased how it turned out.
As you could also guess, it's based heavily on the platformer example from the second Picozine.
I suspect this is to do with how lua thinks it can trust numbers vs. how the pico-8 fixed-point numbers are limited, but I'm not sure that's actually the reason. See the end of this post for why I think so.
A for loop will fail, hard, if the end point is -32768 (0x8000.0000), which is a valid (albeit icky) value in PICO-8's fixed-point system:
> for i=-32766,-32768,-1 do print(i) end -32766 -32767 -32768 32767 32766 32765 ... this is the loop that never ends, it just goes on and on my friend ... |
This works correctly when hitting the upper bound:
> for i=32766,32767 do print(i) end 32766 32767 > _ |
If you reverse the params to for, it also fails, but in a different way:
> for i=-32768,-32766 do print(i) end > _ |
The same loop works if it starts one higher:
> for i=-32767,-32766 do print(i) end -32767 -32766 > _ |
Has anyone beena ble to run PicoPi on a RaspberryPi Zero?
https://guillermoamaral.com/read/picopi/
It says to copy everything to a card and boot, but I got mine stuck on a black screen, nothing happens.
I want to make a standalone device booting straight to pico8 and this seems like the only option.
It seems I'm using these a lot, so here they are:
-----------------
-- table as string
-----------------
function tab2str(t)
local s="("
for i,v in pairs(t) do
if type(i)=="number" then
s=s.."["..i.."]="
else
s=s..i..'='
end
if type(v)=="boolean" then
s=s..(v and "true" or "false")
elseif type(v)=="table" then
s=s..tab2str(v)
else
s=s..v
end
s=s..','
end
s=sub(s,1,#s-1)--remove last comma
return s..')'
end
----------
-- example
----------
l={1,2,4,5,s=5}
print(tab2str(l))
|
----------------
-- clone a table
----------------
function clone(t)
local c={}
for i,v in pairs(t) do
c[i]=type(v)=="table" and clone(v) or v
end
return c
end
|
---------------------------------------------------
-- sort a table (insertion sort)
-- cmp(a,b) should return true when a,b are ordered
---------------------------------------------------
function insort(t,cmp)
for n=2,#t do
local i=n
while i>1 and not cmp(t[i-1],t[i]) do
t[i],t[i-1]=t[i-1],t[i]
i-=1
end
end
end
----------
-- example
----------
function ascending_y(a,b)
return a.y<=b.y
end
t={}
for i=1,5 do
add(t,{i=i,y=rnd(10)})
print(i..': '..t[i].i..' '..t[i].y)
end
print("----")
insort(t,ascending_y)
for i=1,#t do
print(i..': '..t[i].i..' '..t[i].y)
end
|

This small Pico-8 tweetcart280 (278 chars in code editor without comments) is my homage/demake of Spike Dislike by Jayenkai. You can find the original one and lots of other games he has made here: agameaweek.com
Have fun!

An implementation of Rocket, from the Pairs Companion. The full rules are in the Pairs Companion, which you can download from Cheapass Games, but short version: there's 1 1, 2 2s, 3 3s, and so on through 10 10s in the deck. Don't get a pair.
The implementation actually works - up and down to change your bet, (X) to confirm, then (X) to hit or (O) to fold. There's some feedback now on what happened, but it's still pretty bare. I need to include actual in-game control notes, of course. And to make the art less hilariously awful. And maybe a nice card draw sound, hm.

ok so I think I get how people like pico 8 for its limitations. but will pico 8 ever support 4 players simultaneously?
this would be good for things like raspberry pi where 4 players can sit on a couch and play small 4 player games together.
what do you guys think?
I know older hardware only supported up to 2 players but I think this would be a good idea for the compactness of pico8.

Press X to switch to and from keyboard mode, where you control the cursor with the arrow keys and click with the Z key.
Some hints for if you get stuck:
-You can drag around everything on your desktop.
-Your virus can eat files and interact with the inside of some windows.
-Check your E-Chart to see your virus's status and progress.
-Good luck!
Made for the Virtual Pet Jam.

Hello everyone...
Got PICO-8 yesterday. I had never even heard about Lua. I'm not a coder (as everyone can see) :) but I thought the whole concept was interesting. I grew up with the 64 (though my first computer was a Laser 210), so obviously this is great fun.
Mini Ronin was a first stab at this, to see if I could even make anything that resembles a game.
Have fun! (And yes, the music can be turned off with the down key!) ;)
/ Pingo





8 comments








