I'm not 100% sure this is working correctly but it was a good first try.
-- conway's game of life
-- by ian seyler
maxinit=1400
cls()
for t=1,maxinit do
x=rnd(127)
y=rnd(127)
pset(x,y,15)
end
while(1) do
for y=0,127 do
for x=0,127 do
neigh=0
for tx=-1,1 do
for ty=-1,1 do
if(pget(x+tx,y+ty)==15) then
neigh+=1
end
end
end
if(pget(x,y)==15) then
neigh-=1
if(neigh<2 or neigh>3) then
pset(x,y,0)
end
elseif(pget(x,y)==0) then
if(neigh==3) then
pset(x,y,15)
end
end
end
end
end
|

While studying the jelpi.p8 file I noticed that its using some things that aren't documented in the manual (pico-8.txt) file so I figured I'd post it here.
Missing math function:
sgn(x) returns -1, 0, or 1 based on the sign of the input value, currently passing in 0 returns 1 (maybe a bug)
Missing optional properties:
spr(n, x, y, [w, y, [flip]] the normal draw sprite function can also take the optional flip bool (not documented)
The Argus is watching all, always,. .
(small graphic/sound test)
loving the hard limits of this system,.
except the color limit, can we currently peek/poke to dynamically alter the colors in the 16 ?
I like the limit of 16 palette,. however would rather be able to change these sometimes., all greens or blues,. cycle one, etc.
very cool system otherwise.
So far I found these bugs in the code editor (v0.1.0 on Windows):
- Delete key doesn't work when cursor is at the very beginning of the program (also applies to the command line).
- Copy-pasting adds a blank character at the end of each pasted line.
- Shift-Home and Shift-End don't work properly.
- Saving and reloading the cartridge adds a newline at the end, resulting in lots of blank lines over time.
It may be done but It is not finished.
I am not, I repeat NOT going to continue on this project. Hopefully it works okay.
It contains 2 Nights with 3 Animatronics, 1 of which is not functional.
This is an accurate FNAF clone with some differences in the way you play it. Click things to activate them and watch the cameras to see where the animatronics are. The left vent does not have a light so you have to know when he gets in there. by checking the cameras.
Note this is very buggy.
Despite being made up of almost still images, THE JUMPSCARES STILL STARTLED MY FRIENDS!!! just a warning, I don't want to be sued for heart attacks.
On Night Two you might die out of nowhere this signifies that the second character got you. He doesn't have a jumpscare.
Finally please use this if you want to I give full permission as long as my name is visible in the credits area.
Ask any questions you like I will respond, but I will not continue working on this

You are Flynn Flier, Ace Aerospacer, Space-Dart Superhero! After escaping Tranus's Test, you fly to planet Zondak, a land of energy-ball beings! You've been tasked with circumnavigating Zondak--with every ball of plasma on the planet trying to kill you! Weave through the world of the Zondaks, zapping everything in your way! Will you make it through the 13 zones of Zondak?
SPACE-DART PILOT'S MANUAL Use the ARROW KEYS to maneuver your craft LEFT, RIGHT, FORWARD, and BACKWARD. Note that you will pilot this ship in THREE DIMENSIONS! Press the Z key to ASCEND. Release the Z key to DESCEND. Your ship will automatically hover above the ground, so don't worry about crashing! Apply pressure on the X key to fire an ENERGY BLAST. Your ship can only manage the energy for one ENERGY BLAST per second, but each one is powerful enough to disrupt one Zondak Plasma Sphere. You will score 10 points for each Zondak Plasma Sphere you destroy, and clearing a zone scores you 100 points times that zone's number (clearing zone 1 gives you 100 points, zone 2 gives you 200, etc). You have 3 LIVES to reach Zone 13. Once you have made it past the final zone, you will see the GAME OVER screen, with your final score flashing on screen. Post a screenshot of this screen, with the zone and score clearly visible, and see how you stack up against other pilots! |
In new to Pico-8 so maybe you can tell me if I'm doing something wrong.
In the code below, the sprite and the squares render just fine, but the circles only appear when the camera offset is exactly 0,0(whether by calling camera() or camera(0,0) or by never changing it).
The manual doesn't mention any incompatibilities between circfill() and camera()
I'm using Pico-8 0.1.0 for windows
pico-8 cartridge // http://www.pico-8.com version 4 __lua__ -- noid by noid -- s a r a c a t u n g a local x=0 local i=0 local u=64 local v=64 sfx(0) --music(0) local function _update() x = flr(59*sin(time())) y = flr(59*cos(time())) if (i<15) then i += 1 else i=0 end if (btn(0)) then u=u-1 end if (btn(1)) then u=u+1 end if (btn(2)) then v=v-1 end if (btn(3)) then v=v+1 end end local function _draw() cls() camera(u-64,v-64) rectfill(0,0,128,128,13) rectfill(x+u,y+v,x+u+10,y+v+10,i) circfill(x+u,y+v,5,i) spr(i,x/2+u,y/2+v) circfill(u-x/2+x/4+4,v+y/2+y/4+4,2,2) end |





3 comments





