Jump to content

Search the Community

Showing results for tags 'div'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 2 results

  1. Good afternoon everyone, I'm having some problems fitting Phaser inside a responsive div. I have already achieved this with bootstrap, but this project requires flexbox -- and it's not working as intended. I have noticed that when Phaser is injected in a div inside a flexbox container, the resize event is not fired when the window changes size. I have tried fitting it in a div with "position: absolute" that follows x, y, width and height properties of the flexbox item, but with no success. Has anyone tried this before? Maybe it's something trivial that I'm missing. Thanks in advance, Pedro Antoninho
  2. Hi Can I use divs as virtual controls? I have a div called "leftButton" and I want you to hold down the function "turnLeft()" is executed.The idea is that the vehicle turn left while the div is pressed. URL Test var interval; $("#leftButton").mousedown(function () { interval = setInterval(function() { game.state.states.main.turnLeft(); }, 50); }).mouseup(function () { clearInterval(interval); });On mobiles, currently the operation is not correct, since a delay or the car continues to rotate indefinitely occurs.Desktop works by pressing the div with the mouse.My goal is to use divs for the interface (Buttons, records, lives, etc.), around the game screen. Kind regards PD. Sorry for my English language
  • Create New...