• Content count

  • Joined

  • Last visited

  1. I did a lot of testing and started noticing that older games made with Phaser worked better on the ipad 3 that newer. I tried using Phaser 2.4.6 and now it is working a lot faster! Is there a problem with Phaser Ce that is making it slower? Edit: I did a little more testing and it starts working slower with the first Phaser CE version 2.7.5. It is 30 fps and slower. The same game using Phaser 2.6.2 goes between 50 and 60 fps.
  2. Following my previous post now I'm trying to use compressed textures to see if that will improve the performance on ipad 2 / mini gen 1. We are using texture packer to create the textures? What are the recommended pixel format settings? I tried a few that look very bad. How can I load an atlas with the texture? The current method doesn't seem to allow loading an atlas and several textures: https://photonstorm.github.io/phaser-ce/Phaser.Loader.html#texture Thanks for the help!
  3. Yes, with texture batching and reduced draw calls fps are still under 60. I don' see any improvement. Glitches appear if I define setTexturePriority. I'll upload my testings later. Now I'm trying to use compressed atlas textures but there is not a lot of documentation about this.
  4. These are the kind of glitches I'm seeing with texture batching. The symbols below should be bitmap fonts. It has to look like this:
  5. I tried multitexture batching using Richard tutorial with hopes that the performance will be improved https://phaser.io/tutorials/advanced-rendering-tutorial/part4 I made the test on my demo using phaser 2.8.2 https://github.com/Tembac/ChimangoGamesDemo (Demo is not updated with multi texture batching yet) Draw calls are a lot less now but I don't see any performance improvement. On some devices that I tested it is is also showing graphical glitches with several of the sprites. Canvas is still the faster render option on all the devices I try phaser on. Why is this? Maybe I'm doing something wrong? I tested on Ipad 3 and Nexus 6p. I made other tests on the past with slower android devices and canvas is always the best option.
  6. Complex polygonal shapes tiled texture

    I uploaded a demo with some test. I'm using a mask for the texture and lines for the borders. I'll be glad to hear comments about this. I'm not sure yet what to do so the borders look nicer. https://github.com/Tembac/PhaserPolygonTextureDemo
  7. Hi everyone, We made a simple runner demo with Phaser that works as a base for all our future projects. We are using node modules to make our development easier. We shared it on github so more people can use it and learn from it: https://github.com/Tembac/ChimangoGamesDemo You can try it here: http://chimangogames.com/games/demoRunner/index.html It works great on every device we tested but some people reported that it is running slow on Ipad mini 1gen. We don't have that platform to test so it is hard for us to know how to improve it. Can someone give us tips on how we can improve performance for this demo on that platform? Thanks!
  8. Hi Everyone, I need guidance on how can I approach this problem: Would like to apply a tiled texture to complex polygons. I'm using P2 for the physics and tiled for the level editor. I would like to get something similar to worms where the terrain has a tiled texture, the top has grass and the bottom is darker. These are some examples of what I would like to achieve: I don't care at all about destructible terrain. This is how my level looks now with polygons from tiled: http://puu.sh/wMwsg/28b1609d74.jpg
  9. pixel perfect detection for buttons

    Solved! I need to use pixel perfect for click and for over. var btnFigura = new Phaser.Button(this.game, x, y, 'figura01UiImg', this.btnFiguraOnClick, this, "Figura01__" + pieceName + "_normal", "Figura01__" + pieceName + "_normal", "Figura01__" + pieceName + "_selected", "Figura01__" + pieceName + "_normal"); btnFigura.colorPiece = colorPiece; btnFigura.input.pixelPerfectClick = true; btnFigura.input.pixelPerfectOver = true; this.add(btnFigura);
  10. pixel perfect detection for buttons

    I tried with pixelperfect = true but I can't press the buttons that are behind the transparent areas.
  11. Is it possible to make a button input that ignores the transparent area of the image? I have several buttons on the same position and the transparent areas overlaps so it is not allowing me to press the buttons on the bottom.
  12. Save image to device using cordova and phaser

    Yes, I installed the cordova plugin. Using logcat the output says that the screenshot is a "success" so no errors are apearing. Maybe the screenshot is saved on a hidden folder?
  13. Hi everyone, I need to save an image from the game to the device. I'm using Phaser CE and I build it for mobile using Cordova. I tried using this plugin https://github.com/aaccurso/canvas-image-saver It works on web desktop and web mobile but it is not working on the cordova build for Android. How can I solve this?
  14. Bitmap font made with litera is not showing

    Do you remember what did you do for it to work? Shoebox seems interesting but a lot more complicated.