Jump to content


  • Content Count

  • Joined

  • Last visited

About garethquirke

  • Rank

Recent Profile Visitors

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

  1. I have a unorthodox style of my game states using the let keyword for each state. So I'll try this snippet in the boot stage of my game state, thanks for your help
  2. My game does not scale correctly when the browser loads the game while the window size is made smaller. Another scenario is while in game state, the game will resize correctly, If I try to make the window bigger once again the game will be made out of scale and not usable really. this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
  3. Solved in one line game.physics.arcade.setBounds(0, 120, 900, 500);
  4. Okay so I have a rectangle boundary and I have 4 circles. Each of which I want to collide within this boundary. Is there a way to collide each sprite within this boundary without using p2? var rectangleBoundary = new Phaser.Rectangle(0, 120, 900, 1800); var c1 = game.add.sprite(200, 350, 'qcircle'); var c2 = game.add.sprite(500, 190, 'qcircle'); var c3 = game.add.sprite(120, 30, 'qcircle'); var c4 = game.add.sprite(590, 120, 'qcircle');
  5. Solved this issue by replacing with: item.destroy(); Not sure if the example is outdated but oh well.
  6. I 've been following this example on the phaser website https://github.com/photonstorm/phaser-examples/blob/master/examples/groups/remove.js I get the error "Cannot read property 'visible' of undefined" when I remove one of the flasks from the list, I can't seem to see the problem in my code. let gameState = { preload: function () { // new game elements : flask and big flask game.load.image('flask', '/GameHub/Assets/flask.png',40,40); game.load.image('bigflask', '/GameHub/Assets/bigflask.png',180,180); game.load.image('rectangle', '/GameHub/Assets/rectangle.png');
  • Create New...