Jump to content


  • Content Count

  • Joined

  • Last visited

About slingchilders

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I wanted to confirm that the problem was only on CE version. Haven't changed anything in the code, just switched to 2.6.2 and the performance is through the roof! Almost double. Is it really impossible to use CE version of phaser for mobile webgl? Why is it soooooooooooo slow.
  2. How would I handle resizing the canvas? I try doing this on window resize, but the game is stretched very weirdly. I don't want to scale the game, just show more of it when the window and the game area becomes bigger/smaller? this.game.width = this.canvasWidth; this.game.height = this.canvasHeight; this.game.canvas.width = this.canvasWidth; this.game.canvas.height = this.canvasHeight; this.game.renderer.resize(this.canvasWidth , this.canvasHeight); this.game.scale.refresh();
  3. I have a single background image that is 4000 pixels big. In canvas mode it seems to slow the game immensly when in mobile (iPhone SE) How can I fix it? I tried splitting the image into smaller sprites, but it has exactly the same effect.tt
  4. Why would PIXI do that, and not just render quads via webgl? Seems like the way it is set up is simply not meant for mobile devices, am I right? Even a simple demo in pure webgl renders literally thousands of sprites on iPhone SE with 60 fps. Phaser is struggling with a few :/
  5. I've looked at all the topics here on this forum, and they all seem to be suggesting that debug.text is to blame for this. I have a rather large scene, no debug whatsoever, and on desktop it works fine. However on mobile, iphone SE, with canvas it's 60FPS, with WebGl, it's 10-20 :/ I don't use anything other than sprites, a few masks and tweens. What gives? I need to use WebGl, because I would like to use filters in the future.
  6. I can't get Phaser to display graphics nicely. Here is my setup: this.game = new Phaser.Game(this.settings.windowWidth, this.settings.windowHeight, Phaser.WEBGL, 'area', this, true, false); this.sprite = Engine.instance.game.add.sprite(x, y, key); this.sprite.update = this.update.bind(this); this.sprite.anchor.setTo(0.5, 0.5); this.sprite.smoothed = true; var scale = (1.0/window.devicePixelRatio); this.sprite.scale.setTo(scale, scale); this.sprite.smoothed = false; The graphics loaded here are 2x l
  7. I have a mian body that moves freely on the board. To that body I want to attach a recrangle at a certain offset that would visibly dangle and rotate upon forces affecting the main body. How could I achieve that? I tried a set of springs, but I can't get the desired effect.
  • Create New...