
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.



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


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.


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.

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



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)



