Log In  
Log In  

@Anastasia Dunbar

Follow
Follow

Cart [#30409#] | Code | 2016-10-09 | License: CC4-BY-NC-SA | Embed
3

A platformer example, from GameMaker to PICO-8.
I didn't know that cartridge image displayed your first 2 lines of comments.
Feel free to use this.
Press Z to jump and use arrow keys to move your player.

P#30410 2016-10-09 09:30 ( Edited 2016-10-09 13:30)

My code for sprite rotation:

function sprrot(id,x,y,a,s)
 id=flr(id)
 function getcol(px,py)
  return ((px<1 and py<1)and(px>=0 and py>=0)) and sget((px*8)+((id%16)*8),(py*8)+(flr(id/16)*8)) or -1
 end
 for py=0,s*13 do --floor(9*sqrt(2))
  for px=0,s*13 do
   local uv={x=((px/(11*s))-.6),y=((py/(11*s))-.6)}
   local col=getcol(((uv.x*cos(a))-(uv.y*sin(a)))+.5,((uv.x*sin(a))+(uv.y*cos(a)))+.5)
   if(col>0)then
    pset(flr(x+(px-(6.36*s))),flr(y+(py-(6.36*s))),col)
   end
  end
 end
end

Any better ones?

P#26724 2016-08-10 05:58 ( Edited 2016-08-13 20:01)

Cart [#26054#] | Code | 2016-07-29 | License: CC4-BY-NC-SA | Embed
3

It's not finished. It has problems with punctuation, quotation marks and some other symbols.
At least it does with numbers and alphabet well.
Move with arrow keys into a character.
If you know how to improve it, please do it.
The algorithm may be inspired from my mosaic image algorithm.

P#26055 2016-07-28 22:16 ( Edited 2016-07-29 02:17)

How to get index of which pattern is currently playing in music?
Not talking about sfx.

P#25655 2016-07-21 07:58 ( Edited 2016-07-24 10:52)

Cart [#25543#] | Code | 2016-07-19 | License: CC4-BY-NC-SA | Embed

It's my first PICO-8 cartridge uploaded here.
Move with arrow keys and press Z to regenerate.
I've used Prim's algorithm for this. Some common patterns are visible which I don't know how to fix.
This might be buggy, if you're unable to collect all pills please let me know and comment about it because I was a little confused when I coded this.

P#25544 2016-07-19 09:35 ( Edited 2018-08-07 18:45)

When I try to play a puzzle, it is just a black screen.

P#12454 2015-08-08 00:09 ( Edited 2015-08-08 04:09)

X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-03-19 18:42 | 0.071s | 4194k | Q:44