• Content count

  • Joined

  • Last visited

  • Days Won


ozdy last won the day on February 20 2015

ozdy had the most liked content!

About ozdy

  • Rank
    Advanced Member

Contact Methods

  • Website URL
  • Twitter

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

2,854 profile views
  1. $6/month total for all my games.
  2. Sound doesn't loop in Internet Explorer

    I spent a whole day wondering why my code doesn't work but this does. It turns out it wasn't my code, it was the mp3 - the 7 seconds mp3 in the sample works with my code too, but a 1 minute music mp3 doesn't I tried .ogg too without success. Anyone else experience this?
  3. Phaser Scaling Question

    EDIT: Solved it, thanks again! this.game.scale.scaleMode = Phaser.ScaleManager.USER_SCALE; this.game.scale.setResizeCallback(this.onSizeChange, this); onSizeChange():void { var ratio = Math.min(window.innerWidth/Game.WIDTH,window.innerHeight/Game.HEIGHT); this.game.scale.setGameSize(window.innerWidth/ratio,Game.HEIGHT); this.game.scale.setUserScale(ratio,ratio,0,0); this.camera.bounds.x = -Infinity; this.camera.bounds.width = Infinity; this.camera.x = -(window.innerWidth/ratio-Game.WIDTH)/2; } Original Post: Thank you @samme, this is almost what I'm looking for. How can I add stretching, like having the game scale so that ratio of game is math.min(screen_height/logical_game_height,screen_width/logical_game_width) ? I tried setting the code below, but the game flickers this.game.world.scale.x = this.game.world.scale.y = Math.min(this.game.width/Game.WIDTH,this.game.height/Game.HEIGHT);
  4. Phaser Scaling Question

    Hi, @samme, thank you for your answers, but it doesn't exactly do what I'd like. When I stretch the view, the left and right paddings are on top of the world sprite, but I'd like them not to be - I'd want the visible world to start at x=0 after the left padding sprite and end at x=1920 before the right padding sprite no matter how much I stretch it.
  5. Phaser Scaling Question

    I don't think I explained my question too well, I've updated the picture in my original post.
  6. Phaser Scaling Question

    Yes, the padded sprites still are part of game canvas.
  7. Phaser Scaling Question

    Hello guys, currently I'm trying to resize my game to the whole window, while centering a fixed aspect ratio game window in the center, and having padding sprites at the side, but without success. Can you tell me what I should do? Cheers
  8. Sound doesn't loop in Internet Explorer

    Happens to me too.
  9. Thank you for your work, I won't be able to test in a couple of days but will let you know!
  10. @cmann I don't get the error with nape.min.js, only with nape.max.js, but it's hard to debug with that Funny, even Visual Studio code gives me warnings on nape.max.js, like unreachable lines (238 and 251); (breaks after if/else with returns).
  11. I now added all libraries (debugDraw, easeljs, etc) but I still get the same problem using nape.max.js. Could you hint me which functions are supposed to initiate these constants?
  12. Chrome latest Windows 7 64bit/
  13. Yes, but with debugDraw.ts omitted, could that be the problem?
  14. Cheers for the help, @cmann I get null, null and BodyType object:
  15. Hi, @cmann Great job. I'm using the Nape typescript port, but I'm running into problems: this.space.listeners.add(new InteractionListener(CbEvent.BEGIN, InteractionType.ANY, CbType.ANY_BODY, CbType.ANY_BODY, this.onInteractionBegin)); all the constants (CbEvent.BEGIN, InteractionType.ANY, CbType.ANY_BODY, CbType.ANY_BODY) are null, any idea why this happens? EDIT: This is strange, some other constants like BodyType.STATIC are fine, even though they seem to be defined in the same way in nape.max.js ...