Log In  
Follow
my_name_is_doof

coding is just googling then talking to a rubber duck.
Also play ena dream bbq

KIRBY
by my_name_is_doof

i tried adding display_hdmi_rotate / display_rotate / lcd_rotate / display_lcd_rotate =1 in /boot/firmware/config.txt but that only works if i disable kms which causes pico-8 to fail to boot.

i'm running whatever version of raspbian you can get pico-8 rotated on. raspbian full with cmdline boot, raspbian lite, 32 or 64 bit.

i added video=HDMI-A-1:800xx480M@60,rotate=90 to cmdline.txt and that only rotated the cmdline, not pico-8.

2 comments



has anyone figured out what the input fields for the map function are yet?

1 comment



Cart #aa-0 | 2024-12-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

issue

i'm trying out some object oriented programming but i've run into some confusion
when i make a value in a list derived from another list

class={
 new=function(self,tbl)
  tbl=tbl or {}
  setmetatable(tbl,{
   __index=self
  })
  return tbl
 end,
}

entity=class:new({
 --dsp is read by the main upd
 --stands for despawn
 --removes the entity from the
 --list if true
 --dsp=false,
 --dspwait=false,
 x=0,
 y='smelly',
 --o is for origin
 ox=0,
 oy=0,
 sprn=1,
 --s is for size
 --the size of the spr that is
 xs=1,
 ys=1,
 --a is for animation
 asprnum=2,
 --asp is how much to divide
 --the tmr by
 --so 1 is every frame,
 --2 is evey other frame,
 --3 is every third frame,
 --etc.
 aspd=1,

 --update=function()
  --if x< camera.x+8 or x> camera.x+128 then
   --if 
    --dsp = true

  --end
 --end,

 draw=function()
  spr(sprn,x,y)
  print(y)
 end,

})

and then try to reference a value from that same table from a function (as seen in the draw function
in the entity class) it spits out nil. i have the entire cart up above as you likely have already seen, ignore that it's trying to draw a sprite at a position thats text. i set y to smelly for testing so i could easily see if it was spitting out smelly or it was spitting out nil.

wait you can paste pico-8 sprites in here

[ Continue Reading.. ]

1 comment



@zep

when i add

/home/pi/pico-8/pico8_dyn -splore

to .bashrc or to my own bash script and run it, the file menu inside of splore is completely blank, and nothing shows up when i ls. however when run directly from the command line it functions as it should. it should be noted that i am running ras[b]ian lite 32 on my system, i am on a pi 3 a+ bought this year, and i have no games in the main folder, but in a subfolder. but the log file that is in the main folder does not show either.

this is using the latest vesion as of now, 0.2.6b.

Edit: i put in the games in the subfolder, and the sub folder is being used as a mounting point for a usb stick.

1 comment



would it be possible to add a feature to download carts directly from splore inside pico-8 to a folder in .lexaloffle/pico-8/ that would be configurable in .lexaloffle/pico-8/config.txt in the same manor the carts and save data folders are configurable?

4 comments



I’m less stupid

0 comments



Is it possible to change what Wi-Fi your connected to via pico 8 on raspi?
Clarification: have pico 8 itself modify your internet connection

4 comments






idk how to get fget to check for a specific flag in picotron

3 comments



there is no mget or fget

when i load my collision engine the uses both it gives me an error and when i look at the engine fget and mget are not lit up

if they have been renamed and you know there new names please help

1 comment



The btn call acts very strange with the joystick where if I were to program

P1.x += btn(1)/125.5 - btn(0)/125.5

It would return the error: “attempt to perform arithmetic on a Boolean value”
Even though btn(1) and btn(0) both return numbers.

Some other things that may be of importance are that I am using the Linux version on my steam deck, and that I could not find startup.lua in my files.

1 comment



how do i access gpio and how does it work like is 0x5f85 the 5th pin or the 6th pin how the heck do i count in decimals why is there a face on my wal-

(i don't actually own a pi i'm just trying to code for one)

1 comment



Did anyone else get swarm racer 3000 with their copy of pico-8 (and is it any good) or is it just me

From your local autism gremlin

6 comments



KIRBY

Cart #sebopefami-0 | 2023-05-10 | Code ▽ | Embed ▽ | No License
3

random thing i had lying around so i decided to post it because i need some filler while i work on my platformer
edit: that will probably never come out

3
0 comments



Some more scratch blocks that I don’t know if they’re in pico 8

If you don’t know what they do:

-length of(“apple”):
-takes the input of a string and outputs how many characters are in that string (for example, length of(apple) = 5

-length of(listname):
-takes the input of an array and outputs how long that array is (for example:

X={1,2,5,3,7,}
Z=length of(x)
//Z == 5

)

So if you know if these are in pico 8 and what they are please tell me

3 comments



Cart #empty-0 | 2022-12-01 | Code ▽ | Embed ▽ | No License
1

@bikibird for speako-8

my head for being empty

also the original creator of the meme
l
l
edit: oh god i just was thinking to myself how i hate people who do this i've become my own villain oh god oh crap-

1
1 comment



Cart #empty-1 | 2022-12-01 | Code ▽ | Embed ▽ | No License
1

@bikibird for speako-8

my head for being empty

also the original creator of the meme

1
0 comments



how to i export a cart as an image

2 comments



so right now i'm working on a game called raise a thing (raise a floppa clone) and there are some things that i can't find and its these two blocks from scratch

and these are the two blocks i always use to create save codes and other things

so if anyone knows if these exist in pico 8 lua and what they are please tell me

another thing is does anyone have a point towards (x,y,sx,sy) function that i can use with credit?

what i'm looking for is something that you give the sprites x, y, the x and y you want to point at, and it outputs a direction that can then be put through sine and cosine to be converted into movement

i'll credit you in the credits (i'll make a note in the games code to make sure i don't forget)

4 comments