Log In  


Does anyone know of a routine that lets you have a screen that's, say, 256x256, but scaled to fit the normal 128x128? I know it'll look pretty poor, but that won't matter for what I have in mind.

So I can pretend the screen is bigger than it is, then it's just magically squashed to fit.



there are launch switches

so you can do

pico-8 -height 256 -width 256

i think pico will scale ok, but you may also need the switch

-pixel_perfect 1

to allow it to scale (but i think that is only needed if you are not setting the size in 128 increments)

:: Commandline parameters

// note: these override settings found in config.txt

pico-8 [switches] [filename.p8]

-run boot filename.p8 on startup
-width n set the window width
-height n set the window height
-windowed n set windowed mode off (0) or on (1)
-sound n sound volume 0..256
-music n sound volume 0..256
-joystick n joystick controls starts at player n (0..7)
-pixel_perfect n 1 for unfiltered screen stretching at integer scales (on by default)
-draw_rect x,y,w,h absolute window coordinates and size to draw pico-8's screen
-run filename automatically load and run a cartridge
-splore boot in splore mode
-home path set the path to store config.txt and other user data files
-desktop path set a location for screenshots and gifs to be saved
-screenshot_scale n scale of screenshots. default: 3 (368x368 pixels)
-gif_scale n scale of gif captures. default: 2 (256x256 pixels)
-gif_len n set the maximum gif length in seconds (1..120)
-gui_theme n use 1 for a higher contrast editor colour scheme
-timeout n how many seconds to wait before downloads timeout (default: 30)


if you need a virtual screen (e.g. you are porting code that's heavily hardcoded on 256x256), you could override the graphics api:

 _pset=pset function pset(x,y,c) _pset(x/2,y/2,c) end 

so pset(160,160,7) will light a pixel at 80,80. do the same for any graphic function you need.


(edit - @moosepr) Thanks, but that's not what I'm asking for :)

I want to create a map, say, that's 256x256 pixels. But instead of scrolling around it or "flip screen", I want to show it all in 128x128 pixels.

Sort of how I could use sspr, but for the entire screen.


@ultrabrite that might work, thanks!



[Please log in to post a comment]