Jump to content

[Phaser] Caveman Calamity


Hsaka
 Share

Recommended Posts

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.

post-10-0-06915400-1367559094_thumb.png

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...