Log In  

BBS > Superblog
Posts: All | Following    GIFs: All | Postcarts    Off-site: Accounts

I don't know if this is a bug or feature, but it seems to me that nested loops do not work.

I attempted to use the following code, debugging the text showed that only one loop occurred:

local x=0
local y=0
while(x<16) do
 while(y<16) do
  val=mget(x,y)
  print(val)
  y+=1
 end
 x+=1
end

I don't know if this is intended or a limit of lua, but I was able to work around it with the following code:

local i=0
while(i<256) do
 local x=i%16
 local y=(i-x)/16
 val=mget(x,y)
 print(val)
 i+=1
end
2 comments


Cart #10188 | 2015-04-24 | Code ▽ | Embed ▽ | No License
4

Working on making a simple RPG style game, so far I've just been working on getting the very basic movement and collision detection code working. Let me know if you have any questions. Thanks!

4
1 comment


Cart #11093 | 2015-06-03 | Code ▽ | Embed ▽ | No License
262

Here's the small shooter I made with the early version of pico-8.

  • fire with Z
  • launch all missiles with X
  • missiles recover with time
  • missile deal double damage on non-shielded targets
262
30 comments


Cart #10177 | 2015-04-24 | Code ▽ | Embed ▽ | No License
2

I'm not much of a musician, but I made this this morning. Yay bleeps!

2
0 comments


Hey.

I really like PICO-8 - it's really helpful to be able to learn a little tool, and stay inside that same tool until I finish a whole game.

However, one of my goals in playing with PICO-8 is to practice Lua.

Is there a way to turn off the PICO-8 specific syntax, so that I don't acquire "bad habits" of using += or whatever?

Thanks!

Johnicholas

8 comments


A silly face generator. By me.

Cart #10173 | 2015-04-24 | Code ▽ | Embed ▽ | No License
4

4
0 comments


Cart #10169 | 2015-04-24 | Code ▽ | Embed ▽ | No License
3

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
3
3 comments


Cart #10166 | 2015-04-24 | Embed ▽ | No License


wow a lot.

1 comment


[#9000

totaly by etain.

1 comment


Cart #10159 | 2015-04-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

experimenting with pico hardware

neato features:

persistent loading/saving (not sure yet if this works in the web player?)
day/night cycle
shitty music

2
2 comments


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)

4
2 comments


Is it possible to update a cartridge that has already been submitted? I couldn't find any option. I know these are supposed to be actual cartridges so maybe there could be an "Issue Recall m( )m" button.

1
5 comments


Cart #10151 | 2015-04-23 | Code ▽ | Embed ▽ | No License

This is just me trying to learn how to use the map data. That tempting "door" at the top doesn't work yet.

2 comments


Cart #10147 | 2015-04-23 | Embed ▽ | No License
1

New cart to play that I uploaded.

1
1 comment


Cart #10145 | 2015-04-23 | Code ▽ | Embed ▽ | No License
2

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.

2
0 comments


Even simpler: PRINT(-1) will print -0.99999

1
1 comment


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.
2
12 comments


Cart #piconave004-0 | 2021-02-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

A very simple game I made while getting used to Pico-8 commands and api.

v 0.0.4 :

  • Enemy variations

v 0.0.3 :

  • End screen
  • Better enemies
  • Better background
  • Better effects

v 0.0.2:

  • Fixed enemies awarding more than one point
3
1 comment


Cart #10138 | 2015-04-23 | Embed ▽ | No License
11


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

11
29 comments


When a short-form "if" is directly followed by an "end", it causes an error:

function test(x)
 if (x==1) print "boo"
end

test(1)

Inserting a newline before the "end" fixes it:

function test(x)
 if (x==1) print "boo"

end

test(1)

v0.1.0 on Windows

1
3 comments




Top    Load More Posts ->