Lizard Posted June 10, 2016 Share Posted June 10, 2016 Hello everyone! I making project on phaser with accelerometer control. The problem is when you did not touch screen during game in mobile browser it starting turning off backlight. Is here any possibles to solve this problem? Best regards. Link to comment Share on other sites More sharing options...
gnoof Posted June 10, 2016 Share Posted June 10, 2016 Not sure about anything built into Phaser to solve this, but I've just tried this: NoSleep.js (they have a live demo link at the bottom). That seems to work nicely. I left it on my Nexus 5X, chrome browser and the backlight stayed on while I left it alone for 5 minutes. Link to comment Share on other sites More sharing options...
b10b Posted June 10, 2016 Share Posted June 10, 2016 Trigger a VideoElement. Such elements have unfair advantages over us game devs (consistent fullscreen, stay alive). Just checked NoSleep.js - nice - that's the trick used there. Link to comment Share on other sites More sharing options...
Lizard Posted June 10, 2016 Author Share Posted June 10, 2016 18 hours ago, gnoof said: Not sure about anything built into Phaser to solve this, but I've just tried this: NoSleep.js (they have a live demo link at the bottom). Thanks a lot! This is exactly what i looked for. Working really nice for me too Link to comment Share on other sites More sharing options...
Recommended Posts