user123456789 Posted June 10, 2014 Share Posted June 10, 2014 Hi guys and girls. I recently made a simple multiplayer online game with Phaser (my first game with this framework) and I got somewhat excited about this framework. In other words, I would like to try to make my next game to mobile environment and be a little bit more serious about it. (not doing a gamejam this time. ) However, I am bit unsure about the best practices. Hence, I tried to search this forum but I couldn't find what I am looking for: How to make a mobile game with phaser which works with mobile handhelds. To clarify, I wan't to make a mobile game which feels as native mobile game but are made with phaser. (Bonus points are given if I can still release the same code to desktop/browser env.) Therefore, I am asking if here is the people which is done it before and could guide me to the right direction. Is making mobile game with phaser same as making it to browser environment but then packaging it up somehow as a mobile application? I have heard about phonegap and a like, but I made this topic because I want to hear opinions from the people which actually knows how to do it Thanks for all the tips, cheers! Link to comment Share on other sites More sharing options...
tackle Posted June 10, 2014 Share Posted June 10, 2014 Using this: https://github.com/photonstorm/phaser/tree/master/resources/Project%20Templates/Full%20Screen%20Mobile You could make something like this: http://gamepyong.com/ints/ints.php Try it on desktop and mobile, see what you think! Explanation: the template is just a starting template (read the code in it). It's not 100% (I'm having trouble right now with a bug on Android Firefox) but it will get you VERY far! Link to comment Share on other sites More sharing options...
user123456789 Posted June 10, 2014 Author Share Posted June 10, 2014 Using this: https://github.com/photonstorm/phaser/tree/master/resources/Project%20Templates/Full%20Screen%20Mobile You could make something like this: http://gamepyong.com/ints/ints.php Try it on desktop and mobile, see what you think! Explanation: the template is just a starting template (read the code in it). It's not 100% (I'm having trouble right now with a bug on Android Firefox) but it will get you VERY far! Okey, So making the template (and game) behave mobile friendly (such as scaling) is one necessary, nice. Do you have insight for the mobile app part? Do I need to make separate android, iphone etc. projects and try to embed to game inside them and release? Does canvas based mobile games released as native mobile apps perform better than canvas based mobile games played through browser? Or how these things works? - Mane Link to comment Share on other sites More sharing options...
tackle Posted June 10, 2014 Share Posted June 10, 2014 My guess is that if there is any performance difference between canvas mobile played in the browser vs embedded in an app, it would perform worse in an app. My tip only leads you to step one - canvas browser based, not android/iphone app.There are things, like Phonegap, Cordoba and others. I have very little experience with this however. Link to comment Share on other sites More sharing options...
user123456789 Posted June 10, 2014 Author Share Posted June 10, 2014 My guess is that if there is any performance difference between canvas mobile played in the browser vs embedded in an app, it would perform worse in an app. My tip only leads you to step one - canvas browser based, not android/iphone app.There are things, like Phonegap, Cordoba and others. I have very little experience with this however. Hmm.. I googled more and realized that it might perform actually better in the app than in the browser (mobile).. https://www.ludei.com/cocoonjs/how-to-use/ these claims to use enhanced execution environment canvas+ which tends to be better than plain webview which is used to show the game (normally inside an native app, I assume). Ofc. it seems that it can be hybrid of the both. Rather interesting. Link to comment Share on other sites More sharing options...
tackle Posted June 10, 2014 Share Posted June 10, 2014 That's probably more correct than my uninformed guess.Let me know if you try it how it works out! Link to comment Share on other sites More sharing options...
user123456789 Posted June 10, 2014 Author Share Posted June 10, 2014 Yea I will, probably will get better insight just simply trying this stuff out. Will share it later & thanks for the tips! Link to comment Share on other sites More sharing options...
Recommended Posts