uberscientist Posted April 29, 2015 Share Posted April 29, 2015 For some reason the "injector" is stuck in the middle of the screen for canvas and doesn't update it's position, but in WebGL it works: WebGL: http://mindsforge.com/random/LD32/index.htmlCanvas: http://mindsforge.com/random/LD32/canvas.html Have any ideas? I believe these are the relevant lines in the update function (thegame.js:115):var point = Phaser.Circle.circumferencePoint(this.view_ring, this.val);this.injector.x = point.x;this.injector.y = point.y;this.injector.rotation = this.game.physics.arcade.angleBetween(this.injector, this.view_ring) + 1.5;The silent bugs are the hardest Thanks! PS: I first used Phaser for LD32 and it was great, thanks for this library! Link to comment Share on other sites More sharing options...
uberscientist Posted May 2, 2015 Author Share Posted May 2, 2015 As I was working on this issue, I found an old topic with another bug I ran into while trying to fix things: http://www.html5gamedevs.com/topic/7622-tilesprite-anchor-behaving-differently-in-canvas-vs-webgl/ No responses there either, hmm EDIT:Here's an example of the anchor behaving different between webgl and canvas:http://mindsforge.com/random/LD32/testcanvas/ Link to comment Share on other sites More sharing options...
Recommended Posts