pain_gwar

Members
  • Content Count

    7
  • Joined

  • Last visited

  1. pain_gwar

    Internet Explorer 11 Strange Behaviour

    Ok i found a solution. i put this code at the beginning of the script tag in my index.html // IE9 fix if(!window.console) { var console = { log : function(){}, warn : function(){}, error : function(){}, time : function(){}, timeEnd : function(){} } } Here more info about it http://stackoverflow.com/questions/7742781/why-javascript-only-works-after-opening-developer-tools-in-ie-once
  2. Hi guys, i have this strange behaviour with IE11 and i really have no idea what to do. When i try to launch my game (in Canvas Mode not WebGL) i cannot see nothing at all, no images, only the background color. The strange thing is that if i open the console log (F12) and refresh the page everything works perfectly! If i disable the console again and refresh here i got nothing at all again. It's a very strange behaviour and i really don't know what to do. Anyone got this kind of issue? I'm using the full-screen template and Phaser 1.1.6. Thanks.
  3. pain_gwar

    Making a game for both Desktop and Mobile

    If you want to enter in fullscreeen mode in the create() function try to use this code: this.game.stage.fullScreenScaleMode = Phaser.StageScaleMode.EXACT_FIT;this.game.stage.scale.startFullScreen();this.game.stage.scale.setShowAll();this.game.stage.scale.refresh(); For the orientation you can use this: this.game.stage.scale.forceOrientation(true, false);this.game.stage.scale.enterIncorrectOrientation.add(this.enterIncorrectOrientation, this);this.game.stage.scale.leaveIncorrectOrientation.add(this.leaveIncorrectOrientation, this); and then manage the behaviour in the "enterIncorrectOrientation" and "leaveIncorrectOrientation" function
  4. pain_gwar

    Cannot view sprite render/debug

    If you update to Phaser 2.0 you have to use this in your render function: this.game.debug.body(player);
  5. pain_gwar

    preload bar image messed up

    Similar problem, i cannot see no more loading bar after passing to 2.0
  6. pain_gwar

    Internet Explorer 11 WebGL bug

    Hi guys, i have a similar issue with IE. It's not regarding in particular WebGL rendering but Canvas Rendering. I have no rendering at all both with Canvas and WebGL, i only see the canvas completly black. The strange things is that if i open the debug tools (F12) and reload the page everything works fine. No one had this issue? I am using Fullscreen Template with Phaser 1.1.6.
  7. pain_gwar

    Circle Collider Bug

    Hi guys, new to Phaser so maybe this isn't a bug. I searched on the forum but i cannot find any information about it, hope it will be not already asked. I found an issue regarding the circle body collider, in particular when scaling a sprite the circle collider doesn't fit the new scale of the sprite. You can try this out by modify the "Circle vs Polygon" example, just add this line of code: "sprite4.scale.setTo(0.7, 0.7);" after creating sprite4 in create() function. You can find an image attached. The fact is that if you remove the circle body (using the rect one) everything's fine. I think that is possible to modify the center of the collider manually, but i wanted to signal the problem.