Jump to content

Search the Community

Showing results for tags 'debugdraw'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 2 results

  1. Hello guys, I tried to add ?debugdraw at the end of my URL, the game doesn't start with this error: Uncaught TypeError: Cannot read property 'width' of undefined I add bodies with: /* TOP BODY */ this.topBody = new game.Body({ position: { x: topX, y: topY }, collisionGroup: 0, collideAgainst: 0, mass: 0, }); this.topBody.collide = this.collide.bind(this); this.topBody.addShape(new game.Rectangle(74, 314)); game.scene.world.addBody(this.topBody); /* BOTTOM BODY */ this.bottomBody = new game.Body({ position: { x: topX, y: topY }, collisionGroup: 0, collideAgainst: 0, mass: 0, }); this.bottomBody.collide = this.collide.bind(this); this.bottomBody.addShape(new game.Rectangle(74, 314)); game.scene.world.addBody(this.bottomBody);Chrome infos: Panda.js 1.9.0 core.js:334Pixi.js 1.6.1 core.js:335Canvas renderer 320x480 core.js:336Web Audio engine core.js:337Test Game 1.0.0 core.js:339836 Uncaught TypeError: Cannot read property 'width' of undefined
  2. Hi. First I must say this is awesome engine, so simple, so fast ... thank you very much But I have problem with your Simple physics example, the canvas is not full screen (nor landscape nor portrait), I further tested it with mousedown and the canvas is truly not extended to the edges (at lease 1/3 of screen is out of bounds in landscape mode). I tried adding X and Y values to game.start() but this causes part of the screen that is outside to flicker and/or show multiple objects from game going in reverse direction. I also tried to set size with window.innerWidth and window.innerHeight but that causes game to be overstretched and almost 1/3 of canvas falls out of screen. So my question is, what is the best way to set screen size for multiple devices (from 320px up)? My second question is why is there "game.DebugDraw.enabled = true" in Simple physics example, but not in Flying Dog? My app does not render anything without game.DebugDraw.enabled set to true? I am working on Sony Ericsson Xperia Arc S (LT18i), android 4.0.4 with CocoonJS Launcher. Thank you and keep up the good work!
×
×
  • Create New...