• Content count

  • Joined

  • Last visited

  1. Low quality assets for mobile

    Why not use a PNG optimizer? I've reduced your 90kB down to 9kb here... (using TinyPNG without changing your scale at all. Looks pretty close (top is original, bottom is optimized). There are many ways you can optimize graphics beyond just scale. Then you don't need to change your code at all.
  2. Phaser Code standard

    What do you mean by code standard? You can download the JS files from the Phaser page.
  3. How to use DOM elements within the Phaser canvas

    It's better to use Phaser sprites for that kind of thing. You can use DOM elements, and some people use it for UI and other static elements, but it makes more sense to use sprites for moving objects and items going on inside your game.
  4. I'm interested in the Particle Storm plugin, but I'll be updating my game to Phaser 3.0 shortly. WIll the plugin be updated for 3.0, or will the code work in 3.0?
  5. These tutorial should help you Are you setting viewpoint window.innerWidth and outerWidth?
  6. Help with new level (Newbie)

    Not quite sure what you mean. Do you mean just how to store the items in a variable, or how to use restart? Check out the Space Invaders example:
  7. radians and degrees conversion

    Thank you: but does that account for the fact that the degrees here aren't 360, but 180 and -180 (which is why I had to resort to if(this.rot<0) this.rot +=2*Math.PI.)?
  8. How to unpause

    I had a similar problem. The example @samme posted on my thread might help you. In the end, I found I had to use CANVAS mode to get input on pause.
  9. Cannot read property '2' of undefined

    But in what you pasted above, you're missing the end syntax on your game variable. I'm just checking if that is present in what you're trying to run. this line: var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { preload: preload, create: create });
  10. Projected Trajectory

    Do you mean calculate the trajectory, or show the guide lines? Calculation is fairly easy: the angle is just your standard law of reflection Check out the Geometry examples, especially line reflection
  11. Cannot read property '2' of undefined

    Is some of your paste cut-off? Your game variable isn't closed off after preload:preload etc. });
  12. How to render a HTML page inside Phaser?

    You may also find this tutorial on overlays useful:
  13. Create a pane of sprites? This is the most in-depth examples of modal popups:
  14. Personally I prefer old threads stay up so people with the same problem can read them and figure out where they're going wrong. They fall down the list pretty quickly so will be buried before you know it
  15. First Game : Help

    You need to post your code so we can see where it is going wrong.