Log In  

Hi everyone!

I'm an absolut fan of Pico-8 and I spend a lot of hours reading this forum, many of them in my smartphone or my tablet.

I love running cartridges when I have a free time (without the possibility of use my computer). And, I can't do anything because in mobiles phones or tablets we can't take a virtual keyboard when we are running a game so...

Can you add an option to pico webplayer in order to give a solution to this?

Or... have anyone any idea how to play cartridges with smartphones?

Thanks a lot!!

P#16221 2015-11-04 15:34 ( Edited 2015-11-04 22:20)

Web player solution:
I found a jQuery snippet that you could use to simulate key events in a web page:

function simulateKeyPress(character) {
  jQuery.event.trigger({ type : 'keypress', which : character.charCodeAt(0) });
}

$(function() {
  $('body').keypress(function(e) {
    alert(e.which);
  });

  simulateKeyPress("e");
});

But, either you download the cart, then export it to .html, and then add your controls with this snippet, or zep makes the default BBS player implement some toggle-able buttons in a similar way.
This gives me the idea that you could export to .html and then add a native wrapper like Cordova to make it run on mobile platforms, if you ever wanted them to run offline.

Full native port thoughts:
According to this LibSDL documentation, it is possible to compile a SDL project for Android (even to iOS...). But, of course, compiling such binaries is a decision that totally relies on zep.

P#16232 2015-11-04 17:20 ( Edited 2015-11-04 22:20)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 06:32:43 | 0.005s | Q:11