eloguvnah Posted January 2, 2014 Share Posted January 2, 2014 I took a bit of hiatus from Phaser to learn and understand Haxe a bit more. Ultimately, I'm coming back home to Phaser though. HTML5 is the future!But quick newb question. Do you have to run different deployments for different platforms? For example, what if I want touch screen controls on screen for mobile and those same controls to be hidden on desktop? Does it need to be different deployments? Link to comment Share on other sites More sharing options...
ShooterMG Posted January 2, 2014 Share Posted January 2, 2014 Yeah I'm also wondering if there's a built-in way for Phaser to distinguish between desktop and mobile, so we can hide/show virtual buttons and so forth Link to comment Share on other sites More sharing options...
Hsaka Posted January 2, 2014 Share Posted January 2, 2014 Hi, you can use the Phaser.Device class to determine which platform your game is running on.if (game.device.desktop) { //hide virtual controls} else { //show virtual controls} Eamon and ShooterMG 2 Link to comment Share on other sites More sharing options...
rich Posted January 2, 2014 Share Posted January 2, 2014 As Hsaka said The test is pretty robust, but if you need more fine-grained inspection look at all the properties in the Device class, as there are loads you can query to determine what you're running on, at actual run-time. Link to comment Share on other sites More sharing options...
eloguvnah Posted January 2, 2014 Author Share Posted January 2, 2014 Beautiful!Exactly what I was hoping for. As always, top-notch stuff guys! Link to comment Share on other sites More sharing options...
Recommended Posts