I'm making a maze game...I know how to use a tile map but I wanted to have a bigger pool of possible screen (128x128) layouts than the map offers. I'm randomly choosing screen layouts and putting them together.
My solution to this was to create 8x8 sprites that then get translated into a table of wall objects. I then loop over that table to draw the maze walls. Nothing too fancy here...checking pixel color, etc.

And this works great up until a point...that point being once player objects and AI objects starting moving around and need to check for wall collisions, etc. It doesn't take long for things to start slowing down once there are 100+ wall objects to loop through per actor.
So given I don't want to use maps outright yet maps are more efficient processing-wise...is there a way to create a map on the fly? Using coordinates that are derived from the sprite.
There doesn't seem to be a vanilla way to do this (which doesn't surprise me), and I hate looking for hacks to get it done, but thought it was an interesting enough question to ask. It might just be a case where I want Pico-8 to do something it's not really suited to do (at least in the manner I'm doing it and I just need to accept Pico-8 limits).


Anyone have any links, examples or insight on how to make an object move towards a target while also going around obstacles (walls) when they hit them?
Say object A needs to get to object B (which is static). I can calculate the direction A needs to move, that's easy to get and make it move in that direction. But when it hits a wall on the way there, I'm not sure how to have it move around that wall.
I'm not necessarily interested in the shortest path, I just need A to get to B and have it be efficient enough for Pico8 to crunch it for several objects.
I'm aware that this will result in Gauntlet-style movement from the A objects around walls and such, which is fine.






.
Game Menu
x or z - select a menu choice
left or right - navigate the menu choices
Menu choices:
- Arcade - As the level increases so does the arena size and the number of enemies
- Blitz - A never ending stream of 25 enemies all at once
- Info - provides control info and game credit
- Story - Gives a brief backstory
.
Main Game
x - Fire weapon
z - hold z while using left or right to get more precise (but slower) aim/turning
up - accelerate
down - decelerate/reverse
left/right - rotate/turn/aim
At your disposal are a radar and health bar int he upper right hand corner.
Collect hearts to recharge your health.
Kill as many enemy tanks as possible.
.
[b][u]Screen Shots
Hi to all!
I've been in love with Pico8 and the whole idea of fantasy consoles for over a year now.
Today I'd like to introduce my take at fantasy console: tako80
I've been working on it for months. I just launched the site at http://tako80.net where you can read about it and find the documentation, if you happen to be interested!
In tako80 the coding is done in Javascript and its carts run on the web. I guess it might be all a bit rough at the moment (I just finished setting up the forum but I haven't tested it thoroughly, yet! :)
To promote tako80, I launched the first TakoJam. You can read about it here http://tako80.net/takojam.
The first prize is $100. I will eventually reward a second and a third prize of $50 and $20.
If you are interested, just drop me a line! Thanks :)



-- generate tile srand(0x1b0f) for y=0,7 do for x=8,15 do local c=flr(x/2)+y if(x%2==0) c+=rnd(2)-1 sset(x,y,c%4) end end -- set map tiles for y=0,15 do for x=0,15 do mset(x,y,1) end end -- display map local t=0 function _update() t+=1 end function _draw() palt(0,false) for i=0,3 do pal(i,flr(t/4)%4==i and 12 or 1) end map(0,0, 0,0, 16,16) end |


Fixed Some Bugs in the latest 1.2 version of Skid Row Joe
*You can now work at Mc Dennys
*You can now work at Sunchucks
*You can now rent at Casa de Rata
Still working on a few other bugs and the manual.
Updated Skid Row Joe with the following modifications:
*More starting money. You now start with $40 rather than $10.
*Less frequent cop and robbers.
Still working on the "can't ride the subway" problem. If anyone experiences it let me know. I'm having trouble recreating it on my end. Manual in the works.
Enjoy!







All over the kingdom the Lich King is feared
His power and evil is total
Many have tried to destroy him
Many have failed
Will you?
Z (or C or N) to attack, X (or V or M) to jump, arrow keys to move
I made this game for the CGA-jam, so only 4 colours was allowed. It's by far my most polished PICO-8 game, and I think the colour restriction actually helped!
I used @mhughson's excellent Advanced Micro Platformer basecode and extended it to fit my needs. Would definitely recommend having a look if you're making a platformer.
Comments appreciated!








Sometimes when I exit Pico-8 to the raspberry pi 3 desktop, I find that I had been clicking on things underneath and opening folders, other programs, etc.
As a workaround for this, I just have absolutely nothing on my desktop except the toolbar at the very bottom, but I felt I ought to report this in any event.

Hi folks,
I made a desktop file that goes into the applications folder of your pi.
It will place pico-8 in the applications menu on your desktop undo applications and development!
cd /usr/share/raspi-ui-overrides/applications sudo leafpad pico-8.desktop |
File: pico-8.desktop
[Desktop Entry] Encoding=UTF-8 Version=0.1.10C Name=Pico-8 Comment=PICO-8 is a fantasy console for making, sharing and playing tiny games and other computer programs. By lexaloffl Categories=Application;Development; Exec=/<install directory>/pico8 TryExec=/<install directory>/pico8 Icon=/<install directory>/lexaloffle-pico8.png Terminal=false Type=Application |
FYI: <install directory> is in my case /home/pi/pico-8
Hey!
I've started working on a personal project to make some interesting visual cartridges and until now I've only been tinkering with rectangles, individual pixels and stuff like that, so I thought I'd give it a try and make some sprite-based visuals. I'm too bad at pixel art sadly :\
I hope this didn't turn out too bad, let me know!
Obviously I'm still a beginner, I haven't even been lurking a lot so I still don't know the best tricks, the cart takes a lot of tokens and it isn't optimized at all but I thought I'd share anyway.
Press left/right to change direction.


