Log In  
Follow
kirbofan
[ :: Read More :: ]

hey, i found an old project of mine, i think i should probably remake it. (or just fix it up and such, you decide!)

Cart #famifikuro-0 | 2022-03-16 | Code ▽ | Embed ▽ | No License
5

controls:
    when out of menu:
        o: jump
        x: use/place held item (or use currently targeted block)
        </>: move
        ^/v: target up/down
        v: make < and > scroll the hotbar
    when in chest (the green ones):
        o: exit (and jump)
        x: move 1 item
        </>: change selection
        v: select from hotbar (hold)
        take the chest item: collect the chest
    when in crafting table (the red ones):
        o: exit (and jump)
        x: craft 1 item/one of the recipe
        </>: select
        ^/v: useless for some reason
        craft the crafting table item: collect the table

block descriptions:
    blue ore: used to make drills & platforms
    red ore: also used for drills, can be used for crafting table
    yellow thing: selling area, use most items to sell them for useless money.
(if i expanded this game this would probably be a whole shop area rather than a single block)
    red thing: crafting table
    blue thing: ship controls, if you have a pink ore in the pink ore holder, it uses it up to take you to a new asteroid.
    green thing: chest
    gravel: falls, should not crush you but very buggy
    stone: virtually useless, you can sell it or build with it i guess.  

item descriptions:
    gold & red/blue pointy thing: drill
    gold & blue upward pointy thing: teleporter, point up and use to travel between asteroid and ship.
P#108728 2022-03-16 15:01 ( Edited 2022-03-16 20:16)

[ :: Read More :: ]

Cart #p_bday_2022-0 | 2022-03-15 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

P#108693 2022-03-15 21:17

[ :: Read More :: ]

Cart #px3_font-0 | 2020-11-27 | Code ▽ | Embed ▽ | No License
6


oh woe is me, my letters are large and my text is readable...
but what if...

introducing the

THREE PX FONT!

that's right! you too could have a handy dandy function for drawing
compact text that fits perfectly on the screen, unlike pico-8's 3*5 font,
which is 32 by 12.33333333...

gross! get that recurring fraction out of here! all i need is 32 chars
by 32 chars!

for the low low cost of however many sprites you are willing to sacrifice,
and however many tokens this thing is, you too can have a pleasant print
the fits (screen wise) anywhere!

just take the following stuff (its customisable, so the character set can be
whittled or widened for whatever you're up to.

free of charge, there is another function (made by yours truly) that
allows you away to use spr() on any sprite scale, but if you don't need it
it can be probably squished into there? i don't know.

anyway, i'm done. its the worlds problem now!

[0x0]

prid={x=0,y=0}
local fontd=" 0123456789abcdefghijklmnopqrstuvwxyz()[]{},=-+*/.#_!:'?"
getlet={}
for i,c in pairs(split(fontd,"")) do
 getlet["c"..c]=i
end

function pri(st,x,y,c1,c2)
 st=tostr(st)
 if(c2)pal(7,c1)pal(6,c2)
 x=x or prid.x
 y=y or prid.y
 local ix=x
 for ch=1,#st do
  if sub(st,ch,ch)==" " then
   x+=4
  elseif sub(st,ch,ch)=="𝘯" then
   x=ix
   y+=4
  else
   scspr(
   (getlet["c"..sub(st,ch,ch)] or 0)-2,
   x,y,3,3)
   x+=4
  end
 end
 prid.x,prid.y=ix,y+4
end

--regular sprite function but you
--choose how wide each sprite is
function scspr(i,x,y,w,h)
 sspr(i%(128\w)*w,i\(128\h)*h,w,h,x,y)
end
P#84770 2020-11-27 22:03

[ :: Read More :: ]

Poke values to change the width of various things, such as:
how wide the map is interpreted as
(poking 32 will make each row be split into 4 rows, below each-other)
sprite width+height
(pretend that PICO-8 has built in ?? sprites)
(so you can have 512 addressable sprites at 4
8,
but the map editor can only have the first 256, due to data reasons)

like fillp(), these would effect the editor.

These would just effect how data is read, not give you more or less (besides leftovers in the sprite memory)

Of course, this would be limited, but you could have one continuous line of map tiles, with no Y axis, or a 8 wide pillar, or anything in between.

Thanks for your time!

P#84327 2020-11-16 20:01

[ :: Read More :: ]

Cart #spajukuro-0 | 2020-10-10 | Code ▽ | Embed ▽ | No License
1

made this little test and while you can only set one
cartdata address you can use run() to do it again with breadcrumbs
and such. this is both a stupid way to store data and the biggest
brain way possible. does anyone think this is a bug?

P#82773 2020-10-10 13:15

[ :: Read More :: ]

how do i target nonlinear values in a table in loops?

values={
 v1=1,
 v2=2,
 v3=3
}

yes i know about

pairs(tbl)

but i don't know how to use it in this context.

any help would be greatly appreciated.

thanks!

P#82152 2020-09-23 15:18

[ :: Read More :: ]

with devkit, storing data in multicarts, and all that, would it make sense for the PICO-8 editor to be rebuilt in PICO-8 itself, as an open source program? if this was done then people could make their own tweaks after copying it, adding whatever useful tweaks they want to the built in thing? its like the ultimate in customisablity, and we'd see all of these cool variants of the tools. plus it would make PICO-8 feel more self contained as people wouldn't resort to external editors. (Want an editor feature? make it yourself! wouldn't that be cool?)
could totally work here.
i personally see the editor as a built in thing as opposed to some external development thing.

so, thoughts?

P#81982 2020-09-19 06:40 ( Edited 2020-09-19 17:02)

[ :: Read More :: ]

Cart #museum-5 | 2022-03-15 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9

welcome to the museum!
we need people to create:
16x16 artworks (preferably with descriptions),
characters (one default 8x8 sprite, one shadowed sprite),
sign texts (use | for newline),
and self contained (preferably) one function programs that:
-avoid camera and clip
-use a 64*64 area
-use only arrow keys (or no keys)
-use a return with a 1-2 line display text (|=newline) (include your credits)
-and no (or maybe 1-3) sprites

versions:


Cart #museum-4 | 2020-09-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9


Cart #museum-3 | 2020-09-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9


Cart #museum-2 | 2020-09-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9


Cart #museum-1 | 2020-09-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9


Cart #museum-0 | 2020-09-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9


signs:
3/32
10: @kirbofan

pictures:
13/32
10: @kirbofan
3: @Munchkin

programs/games:
6/32
6: @kirbofan

characters:
10/???
7: @kirbofan
1: @SmellyFishstiks
2: @Munchkin

moved to carts as colab tag is barren.
ah well

P#81925 2020-09-17 17:31 ( Edited 2022-03-15 21:40)

[ :: Read More :: ]

have you ever wanted to do z ordering, but without careful programming practices?

well i have the product for you!

introducing: the queue() and drawq() functions!

usage:

queue(--[[any function (spr, rect, pal, anything)]],{--[[array of parameters]]},--[[order index]])
use this to put things in the queue.

drawq()
no parameters here! it just bubble sorts --[[oh god]] the functions and calls them in that order,
meaning that --[[for example]], spr calls with the y pos passed as an index, will be stacked like real things, and no more characters standing on each others heads!

q={}
run this to clear the queue. this is the var which i used for queues. this is not perfect, but improvements are left as an exercise for the reader. --please post them, as i know i could do better.

anyway, the script:

function queue(f,p,o)
 add(q,{f,p,o})
end

function drawq() --improvements by @packrat!
 repeat
  local swp=true
  for l=1,#q-1 do
   if q[l][3]>q[l+1][3] then
    q[l+1],q[l]=q[l],q[l+1]
    swp=false
   end
  end
 until swp
 for d in all(q) do
  d[1](unpack(d[2]))
 end
end

here's a little example!

Cart #queuedemo-1 | 2020-08-28 | Code ▽ | Embed ▽ | No License
7

P#81298 2020-08-28 16:54 ( Edited 2020-08-28 19:31)

[ :: Read More :: ]

Cart #straw_ey-2 | 2020-08-24 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
12

it's STRAW-EY!

  • the straw you can't ignore!
  • not appreciating him would be quite the short straw!
  • one straw that doesn't suck! -- by @NaeD
  • Straw yourself in for this cinematic-experience! -- by @SmellyFishstiks
  • I think it’s ex-STRAW-ordinary!! -- by @NaeD
  • This is the last straw. --@chungus_is_gay
  • if I see any pore straw puns, i'm gonna straw-ngle myself. --@chungus_is_gay
  • there are probably other straw puns please help

he doesn't do anything much yet, but he looks cool i guess.
use any code, or the math func lib i made by myself on tab 3.

thanks to the creator of this thick line func:
https://www.lexaloffle.com/bbs/?tid=39016

feel free to modify (with credit) or suggest changes!

have fun!

P#80921 2020-08-18 14:59 ( Edited 2020-08-24 11:42)

[ :: Read More :: ]

the full bee movie script.
these two carts link, but not on the BBS.

is this still funny?
i swear it is.

Cart #perfection1-0 | 2020-08-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4


Cart #perfection2-0 | 2020-08-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

enjoy this stupid, stupid thing.

P#80267 2020-08-02 18:54

[ :: Read More :: ]

21 squid!

Cart #squid21-0 | 2020-07-31 | Code ▽ | Embed ▽ | No License
2


a lovely squid game with 3d, and too many yellows,blues,oranges and greens.

P#80153 2020-07-31 08:42 ( Edited 2020-07-31 08:42)

[ :: Read More :: ]

Cart #drewbirthday-1 | 2020-07-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

happy birthday!

have fun!

P#79794 2020-07-23 06:03

[ :: Read More :: ]

Cart #broabday-0 | 2020-07-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

HAPPY BIRTHDAY

Hi dad!
look at me go with a card, made just in time!
anyhoo...

Controls:

(O)/Z: Speed up
(<) : Jump to previous marker
(>) : Jump to next marker

ENJOY

ENJOY

ENJOY

ENJOY

ENJOY

P#79100 2020-07-09 20:29

[ :: Read More :: ]

Cart #baba_is_you-0 | 2020-06-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
15


a tiny baba clone!

P#78426 2020-06-23 13:23

[ :: Read More :: ]

Cart #fathersday-2 | 2020-06-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

HAPPY FATHERS DAY!

i made a playable birthday card,
i hope you like it dad!

P#78361 2020-06-21 06:57 ( Edited 2020-06-21 07:37)

[ :: Read More :: ]

Cart #kirbologo-0 | 2020-06-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2


wow, a logo?
its now going to probably be included in things i make, like geepo!

P#78217 2020-06-18 10:42

[ :: Read More :: ]

Cart #islandmaker-0 | 2020-06-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5


make an island by driving, then i guess just drive on it?
it looks cool, and i think that's the most important point here.
have fun, and feel free to look at it, or steal it,
but tell everyone that you did.

P#78070 2020-06-14 14:19

[ :: Read More :: ]

Cart #spirographmaker-0 | 2020-06-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
10


Ever wanted to make a spirograph style thing?
I guess this works. 8 settings in a fancy menu!
The options:

[0x0]
Thickness:
Controls how thick the line is, from 0-10, with 0 being a single pixel dot.
[0x0]
Scale:
Controls how large the finished spirograph is, from 1-64.
[0x0]
Trail:
Controls the number of frames back that the trail extends (not effected by speed), ranging from 0-128.
[0x0]
Spread:
Controls how many points are drawn in the line, and ranges from 1-40.
[0x0]
Wiggle:
Controls how much the image is shifted by from 0-8.
[0x0]
Speed:
Makes everything faster, but otherwise doesnt do anything, Multiplying frames per second by -32 to 32.
[0x0]
Lines:
Increases amount of lines in range 1-16.
[0x0]
Pallete:
Changes colour of the lines to any one of 13 palletes.

P#77811 2020-06-08 19:22

[ :: Read More :: ]

Cart #jaksbday-0 | 2020-06-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

happy birthday jaks!

from chip

P#77739 2020-06-06 16:16

View Older Posts