Hsaka Posted May 3, 2013 Share Posted May 3, 2013 Hi, I made this game primarily to try out Phaser. There are only a few levels so far but more will be added soon.The game is similar to breakout but with a few twists thrown in. I'm interesting in how it performs on mobile devices in particular. You can try it here: http://www.gamepyong.com/caveman_calamity/ Quote Link to comment Share on other sites More sharing options...
benny! Posted May 3, 2013 Share Posted May 3, 2013 Just tested it on my Google Nexus 4 (mobile device). It was playable - but I have to say that the overall performance wasnt that good. Then I just tried it on my chromebook and it has a scaling problem that only half of the gamescene is shown. (refer to attached screenshot) The loading time is pretty long - I would suggest to show a loading screen. Anyway, Cool to see another game with Phaser. Quote Link to comment Share on other sites More sharing options...
rich Posted May 3, 2013 Share Posted May 3, 2013 Well done!! Seriously it's really cool to see Phaser used like this It worked fine on desktop and iPad for me, but here are some tips to get performance up if you're interested: 1) Using canvas text is really expensive in terms of CPU. This is my fault because I've not given you a bitmap class to use yet But if possible you could see if you could replace some of the text in-game with images, it will really really help and is the singly biggest speed killer on android. 2) I think you use some GeomSprites in-game for the top/bottom bars? Swap those for images too. It doesn't matter so much on the title page, but in-game you need all the speed you can get. At the end of the day though it's an 800x400px game, which is pretty big for little mobiles, but even so nice work indeed! I will be adding bitmap font support, so if you'd rather just wait until I've done that before touching the game again then fair play Quote Link to comment Share on other sites More sharing options...
rich Posted May 3, 2013 Share Posted May 3, 2013 Oh! and another free perf boost: If you've got an image covering the whole of the game, like you have, then set Stage.clear = false There's no need for it to spend time doing a canvas clear if you're going to paste a big lovely image on the top anyway Quote Link to comment Share on other sites More sharing options...
Hsaka Posted May 3, 2013 Author Share Posted May 3, 2013 Thanks a lot for trying it out and for the tips. I'll try to implement them and redeploy tonight. My experience using Phaser was really very enjoyable to say the least (: I'll also try to see what's up with that scaling issue and throw in a loading screen. Quote Link to comment Share on other sites More sharing options...
rich Posted May 3, 2013 Share Posted May 3, 2013 That is great to hear Once I've added bitmap font support that should help most of all. Quote Link to comment Share on other sites More sharing options...
Hsaka Posted May 4, 2013 Author Share Posted May 4, 2013 I've updated the mobile version of the game with the tips pointed out above: Stage.clear = false, all assets scaled down to fit in a 480x320px canvas, replaced some of the canvas text and GeomSprites with images. Hopefully it helps the performance a little. http://gamepyong.com/caveman_calamity/mobile/index.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.