Log In  

@pixelpunker

Follow
Follow

After upgrading to Pico-8 0.1.12C I noticed pixels were a bit blurry, even with the explicit option -pixel_perfect 1

Well, it seems the reason is not PICO-8 but a recent Windows 10 update. I have systemwide DPI set to 125 % and Windows therefore tries to scale the PICO-8 window a bit.

I fixed that by right clicking on the PICO-8 shortcut, settings, Compatibility, Button "Change High DPI-Setting".

In the following dialog turn on both checkboxes:

P#68570 2019-10-06 13:53 ( Edited 2019-10-06 13:56)

PICO-8 iPhone Shell

This is a work-in-progress iPhone Shell for PICO-8 featuring

  • sound
  • real gamepad controls (digital and analog)
  • pixel-perfect scaling
  • low latency (run loop reading input runs 60 times a second)

Note: I am abandoning this project because I now use the ClockworkPi Gameshell.

It uses the Gamepad API that was introduced with iOS 11 and was tested with the following MiFI-Controllers:

Controller Working
Kanex GoPlay Sidekick Yes
SteelSeries Stratus Yes after Firmware Update
Logitech PowerShell Controller No

No more touch support at the moment.

On the iPhone SE you have pixel-perfect scaling. Since the iPhone SE's display is 640 pixels wide you can do a 5x integer scale for razor sharp pixels. For a more full-screen experience turn the phone sideways.

Click to start the game (necessary to enable audio).

You can test it out on your phone:

https://pixelpunker.github.io/pico8-iphone/iphone.html

To Change the Game

Load your PICO-8 cart and export it as html with this command

export mygame.html

Keep the mygame.js file and throw away the other files. Change line 66 in iPhone.html to reference your exported cart.

Todo:

  • Use new fullscreen API in iOS 12/13
  • Test other bluetooth controllers in iOS 13
  • Does saving to home screen work now? (Pinning the website to the homescreen used to disable Gamepad functionality)
P#68447 2019-10-04 12:52 ( Edited 2019-10-06 13:46)

At the beginning of their draw cycle some carts use

cls()
rectfill(0,0,127,127,color)

instead of

cls(color)

Is that for performance reasons? Does it perform better if you call rectfill with your background color? Or is it because the color option for cls was introduced in a later version of pico-8?

P#63303 2019-04-07 13:51 ( Edited 2019-04-07 16:10)

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-11-21 22:35 | 0.063s | 2097k | Q:15