It finally works on iOS too!


After being stumped by the game not working on iPhones for quite some time. I thought I figured it out. I have to use touch events instead of clicks!

Well, through wise foresight I already was using touch events... So what could possibly stop the game from working on iOS? As I am on a hiatus from work I could not access our devices and a friend tried to log the console but nothing showed up. 

Months went by - I had to focus on theatre stuff and a dedicated user, waiting for the game, offered help as well. No luck, but by sheer chance and some stupid ideas in the middle of the night, I initialized the touch functions as empty functions and only then filled them when the game was loaded with their actual functions. Now it works!

It seems to be mostly a mix of iOS quirks and p5.js because with phaser, no such thing happens with it's input manager. Still p5.js was the way better choice for rendering the game :)

I kind of dread the moment when I will port this to native iOS instead of the web build, but for now I am happy that everybody can play it no matter the OS 😊 

Get SerpenTiles

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.