Hey all! This is my first little Pico-8 experiment, and like I almost always do with any game engine, a Snake clone was first on the list. I'm not a great artist, so excuse the lack of polish in the sprites ^^

Points by fruit type:
- Apple - 1 point
- Plum - 1 point
- Blueberry - 1 point
- Peach - 1 point
- Blackberry - 1 point
- Bronze apple - 2 points
- Silver apple - 5 points
- Golden apple - 10 points
Each fruit you eat will increase the length of your tail by 1 tile.
Going off the edge of the screen will wrap you around to the other side.
Don't run into your tail, and try to survive as long as you can!


hey guys!!! this is my first cartridge that wasnt made following any tutorials, it took a lot of hair-pulling (im not a programmer) but i got it to a state where im cool with releasing a demo!!!
controls are X to fire, square to focus movement
see how high of a score you can get and post it in the comments!!!
at some point i want to make this into a full game with levels and and bosses and everything, but i figured since i have a self-contained demo working i might as well post it
also, any feedback would be appreciated!!!!


New version below, this is the first version
This is a remake of a game I coded mumble years ago with allegro.
It's still very much WIP, I started today and just got the basics working and some rough sprites drawn.
You can switch from joypad to mouse using a flag in the the code - which I would recommend if you can.
I enabled the mouse emulation in this cart, since the manual mentioned problems with mouse support on the bbs.
Issues:
- There is a bug when picking up an atom (it doesn't connect the free electrons to nearby other free electrons)
- in mouse emulation there is no bounds checking
Todo:
- an actual goal for the game
- removing molecules when all electrons are bound


It's midnight. You've been thrown awake by infernal craving. You must find your way through the darkness to find the jar of peanut butter. Avoid your toys, cracks in the floor, and potted plants as they will draw attention to your sneaking. Trip over three and it's back to bed for you. However, if you make it past the obstacles safely, you'll have that sweet midnight butter inside of you.
This was made in 5 days for the Weekly Game Jam 158 - Replay.
Hey,
I have a big list of variables in the format:
a=1 b=2 c=3 |
etc.
I was wondering what the fastest way is to convert it into this format:
a,b,c=1,2,3 |
Is there an online tool to do this or something someone can point me to?
P.s. @zep I would like to change my username, is this possible? I have also pinged you an email.

Not sure if anyone has posted a smap() yet, but it's reasonably straightforward to implement with tline, so here's mine.
Parameters are:
cx,cy,cw,ch Specify a region in the tile map. Measured in tiles.
sx,sy,sw,sh Region on the screen to map to.
flipx,flipy Whether to flip horizontally and/or vertically.
layers Layer flags. Same as for map().
You need to supply at least the c and s parameters.
function smap(cx,cy,cw,ch,sx,sy,sw,sh,flipx,flipy,layers) -- negative screen sizes if(sw<0)flipx=not flipx sx+=sw if(sh<0)flipy=not flipy sy+=sh sw,sh=abs(sw),abs(sh) -- delta local dx,dy=cw/sw,ch/sh -- apply flip if flipx then cx+=cw dx=-dx end if flipy then cy+=ch dy=-dy end -- clip if(sx<0)cx-=sx*dx sx=0 if(sy<0)cy-=sy*dy sy=0 if(sw>128)sw=128 if(sh>128)sh=128 -- render with tlines -- pick direction that results -- in fewest tline calls if sh<sw then -- horizontal lines for y=sy,sy+sh-1 do tline(sx,y,sx+sw-1,y,cx,cy,dx,0,layers) cy+=dy end else -- vertical lines for x=sx,sx+sw-1 do tline(x,sy,x,sy+sh-1,cx,cy,0,dy,layers) cx+=dx end end end |


This is a bug in 0.2.1b, and possibly earlier, causing crashes in BBS carts like Pieces of Cake. After the new add() functionality was added, complex or token-optimized code causes a hard crash with this error:

As per @Felice, the bug is from an implied nil return from a function, which is apparently different than an explicit "return nil". add(t,nil) works, as should this (since it gets converted to a true nil through assignment):
function fn() end local f=fn() [ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=79749#p) |




Hi! I was working on a game and I was trying to make it so that for ex:
[
1,2,3,4,5,6,7,8,9,10,11,12 ... would be translated into
01,02,03,04,05,06,07,08,09,10,11,12 ...
]
and I was wondering how do you "apend" stuff to a string? I might be doing a doofus play but I forget some stuff about PICO-8 since I took a break from it : o
here's the code snipit I'm trying to figure out so far
wavenum+=1 wavestring=tostr(wavenum) if (#wavestring==1) add(wavestring,"0") |
(was wondering if you can use add() to add to a string maybe..






This is Random Escape!
You were wrongfully accused and were taken to prison. Shoot your way out to escape! This is the only way!
One of the guards has the key to activate the elevator to the next floor.
The guards will try to stop you at all cost
Meet your enemies:
private
![]() |
[8x8] |
shotgun sergeant
![]() |
[8x8] |






Opening Note.
For some background, this cart was one of my very first experiences with pico-8 and coding. I started this shortly after @TRASEVOL_DOG 's Tiny Tv Jam. And by god I knew nothing! I had the idea in my mind, but not the skills to produce it. So taking Zep's Collision demo, I set out on my 3 and a half year journey. I can tell you one thing, coding without even knowing how the language works is a frustrating experience. I was, and still am in some ways, a total noob. But I brute forced my way through it, learning from reading through other people's carts, and literally spending days reading the Pico-8 API. I'm proud of what I've achieved, and even though I wanted to complete this before I moved on, I must know when to call it a day.
This is not a bug per se but still has the potential to break PICO-8.
I was surprised to learn that the most recent version of Buildroot has completely removed the WiringPi package. It says:
> ### BR2_PACKAGE_WIRINGPI:
> The author of wiringpi has deprecated the package, and completely removed the git tree that was serving the sources, with this message:
> Please look for alternatives for wiringPi
Apparently the author has had enough: wiringPi – deprecated…. This has obvious implications for PICO-8 as it currently depends on WiringPi. I hope @zep is aware of this.


I have installed pico 8 with picopi on a raspberry pi zero and it runs really nicely, but I can't seem to get a zero delay usb joystick interface to work with it.
It sees a playstation classic (the mini) usb ok and also a generic nes usb controller.
If all else fails, I could just use the nes pcb and pad hack to the joystick box I'm making.
It would be far neater to use the Zero Delay - or, better still - the gpio pins, but I think you need an operating system to access those?

