Log In  
Follow
jo560hs
Follow

I just got pico-8 and am expierementing with it.

Cart #mapcompress-0 | 2020-11-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

So you know how half of the sprite sheet is shared with the map? Because of that, usually I use the half for the map, one spritesheet tab for sprites, and one tab for map tiles. Well, I just figured out that in doing so I dont use 1/4th of the tile data. This program I made uses the 1/4th tile data to flip the map tile. I will be making a tool to use this easily soon.

Code to import:

function _map(x,y,sx,sy,celw,celh,layer)
    local x=x
    local y=y
    local celw=celw
    local celh=celh
    local layer=layer --not used yet
    if x==nil then 
     x=0
    end
    if y==nil then 
     y=0
    end
    local sx=x
    local sy=y
    if celw==nil then
        celw=16
    end
    if celh==nil then
        celh=16
    end
    for i=0,celw*celh do
        tile=mget(x,y)
        if tile<64 then
         --first tab
            flipx=false
            flipy=false
            tile+=64
        elseif tile>63 and tile<128 then
         --second tab
         flipx=true
         flipy=false
        elseif tile>127 and tile<192 then
         --third tab
         flipx=false
         flipy=true
         tile-=64
        else
         --fourth tab
         flipx=true
         flipy=true
         tile-=128
        end
        spr(tile,x*8,y*8,1,1,flipx,flipy)
     x+=1
     if x==sx+16 then
        x=0
        y+=1
  end
    end
end

The code uses the 2nd spritesheet tab for the tiles.
Call _map() whenever you want to use the function in your game.

P#84531 2020-11-20 15:36 ( Edited 2020-11-20 15:40)

Cart #no_jump-1 | 2020-09-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Remix of Noel Berry and Matt Thorson's Celeste: https://www.lexaloffle.com/bbs/?tid=2145&pid=11722

You can't jump

Your legs are broken, and you are tasked to climb a mountain. All you can do is dash through the air and jump off of walls. Can you reach the summit?

Next up: a higher effort celeste remix

P#81447 2020-09-02 16:53

I'm trying to create a game where there are multiple enemies on the screen at once, but I can't find an easy way to store the enemys' position other than to create a million variables. Is there any way to avoid this?

P#80106 2020-07-29 22:33 ( Edited 2020-07-29 23:17)

Cart #zuyjakime-3 | 2020-07-24 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

Cart #zuyjakime-0 | 2020-07-24 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

im new dont judge me

So this is my first project, im going to create something else now, this was a test.

P#79825 2020-07-24 02:53 ( Edited 2020-07-24 22:10)

Follow Lexaloffle:        
Generated 2020-11-30 01:36 | 0.109s | 4194k | Q:66