the scent of wet fur
huddled close in the dark storm
fine red umbrella
-Electric Gryphon
Well, it's a 3D kinda week on the pico8.
This is a demo of an SNES-style mode-7 engine that renders a perspective view of the map, like the old Final Fantasy games.
Right now, drawing the map is using about 70% of the CPU cycle, so it could definitely use some optimization to leave space for other things like billboard sprites and the like. Reach goal would be to add MIP mapping so that closer scenery would have more detail and further away scenery would be less prone to sparkle.
-Electric Gryphon
It was a pleasant Sunday morning drive in the mountains until a volcanic eruption happened to ruin everything.
Race home along the winding roads, swerving to avoid the slow and the doomed, just seconds ahead of a molten stream of lava.
Maybe if you can drive through the night and into the next day, you will be safe.
Keep the hammer down to avoid a fiery death, but don't skid out on curves or crash into the other motorists.
Up: Drive
Down: Break
v 1.0
This cartridge is feature complete, though it could use some better sound and, of course, some music.
-Electric Gryphon
This is a random assortment of drawings that I have made as a proof of concept.
Hit Z to see the next picture.
Images are stored as strings, as saved by the Canvas Drawing Program.
I will follow up with a post on how to export images from one to the other.
Code by itself is 1892/8192 tokens.
Data for scenes will count against Program Chars and Compressed size.
For 6 scenes, Program chars: 21530/32768, Compressed size 11931/15360
Please feel free to use the code here for your own use.
-ElectricGryphon
This is an prototype for a vector drawing program in pico-8.
Controls:
Arrow keys: Move cursor
Z: Add point / Select polygon
X: Toggle cursor speed (Normal, Fast, Slow)
Tab: Hide menu
Q: Hide cursor
Double click "NEW" to clear the image and start a new drawing.
To save image:
--Picture Only:
--Hit tab to hide menu
--Hit q to hide cursor
--Screenshot to desktop with F1 key
--Full Scene (into ROM):
--Double click SAV button
--Hit escape to exit cartridge
--Ctrl S to save cartridge
--(This is bit of a hack)
New in V0. 88
--fixed the bug with black shapes
--added save function (exports poly list to sprite-sheet. Poly compression is simple 1 byte per value
--added select function
--Click SEL to enter selection mode
--Selected polygons can be re-colored or deleted
--added delete function
--drawing acceleration:
--accelerate drawing solid color polygons by just using line command instead of pattern/bplot.
--store edge list in poly so that we don't recalc every time
--don't redraw all the polygons when we add a new one. removes flicker when drawing complex scenes.
--x button switches the speed of the cursor (slow, medium, and fast) this allows for "pixel perfect" drawing.
--cursor changes color so that it stands out against whatever is behind it
--drawing lines change color so that they match the current foreground
Bugs:
--Export clobbers save
-ElectricGryphon
Hi,
I've written a bubble-sort function snippet, which might be helpful for others.
Function takes a list as an argument, and directly modifies that list.
Pico-8 treats the first index as 1 as opposed to 0, so a lot of standard code snippets have to be tweaked to work. Please correct if you see any errors or ways to increase efficiency.
-ElectricGryphon
function bsort(list)
local i
local j
local temp
local swapped = false
local n=len(list)
--problems with 1 based index
for i=1,n
do
swapped = false
for j=2,n-i+1
do
if( list[j]<list[j-1])
then
temp=list[j]
list[j]=list[j-1]
list[j-1]=temp
swapped = true
end
end
if(swapped==false)then return end
end
end
|
This is my first game on the Pico-8, and, to be honest, the first game that I have "polished" to this level.
Goal:
Explore a hazard-filled cave, collect all of the treasure, and then escape through the elevator hidden in the depths.
Controls:
Left and Right to move.
Up to jump.
Game:
As befits a normal human going against skeletons, slime creatures, and demonic bats, you are completely defenseless and can only shrug off damage that comes your way. Luckily, the intelligence of said critters is meager at best, so it is possible to avoid coming into contact with them.
Let me know what you think.
Thanks,
ElectricGryphon
Notes:
Bat flying behavior has some bugs.
Camera movement shows occasional jerkiness.
Needs play-testing and probably more variety in regards to room / trap types.




  18 comments