enpu

Members
  • Content Count

    1,608
  • Joined

  • Last visited

  • Days Won

    27

enpu last won the day on September 20

enpu had the most liked content!

5 Followers

About enpu

  • Rank
    Advanced Member
  • Birthday 04/21/1985

Contact Methods

  • Website URL
    https://www.panda2.io
  • Twitter
    ekelokorpi
  • Skype
    eemelikelokorpi

Profile Information

  • Gender
    Male
  • Location
    Finland

Recent Profile Visitors

5,854 profile views
  1. enpu

    Ovelay filter with WebGL?

    By overlay you mean blend mode not filter?
  2. enpu

    Collision between game.Circle and game.Rectangle

    Currently in Panda's own physics engine collision is solved (bodies moved) only in Rectangle vs Rectangle and Circle vs Circle collisions. In Rectangle vs Circle the collision is detected, so your body's collide function is called, you could there manually move your bodies the way you want. Or then you could use p2.js physics.
  3. enpu

    How to make gravity not affect some sprite.

    Try to set body mass to zero. this.body.mass = 0;
  4. enpu

    About clearBeforeRender

    Ah yes so this is issue with Pixi plugin. Added to roadmap, thanks!
  5. enpu

    About clearBeforeRender

    Try game.Renderer.clearBeforeRender instead of game.renderer
  6. enpu

    Anyone using Tiled?

    Good point. I should add info about that to the website. I would say that you can post your changes here and then i could update the official plugin.
  7. You can also return true in your scene's keydown function to prevent default action on specific key: game.createScene('Main', { keydown: function(key) { if (key === 'BACKSPACE') return true; } });
  8. enpu

    Some issues with WebGL

    Noted and added to roadmap, thanks!
  9. enpu

    UWP Hosted Apps / Edge Stuttering

    Just to confirm, the fps drop occurs only when using Gamepad plugin?
  10. enpu

    Xbox Panda Remote

    Great that you got it working, though now i'm not sure what was causing the issue. Will try to figure out that other one now
  11. I have now added support for bezier curves on Polygon. drawPolygon API now looks like this: game.createScene('Main', { init: function() { var grap = new game.Graphics(); grap.drawPolygon([ [0, 50, 70, 50, 70, 0], // Bezier curve 50, 0, // Point [50, 30, 20, 30, 20, 0], // Bezier curve 0, 0 // Point ]); grap.scale.set(5); grap.position.set(100); grap.addTo(this.stage); } }); This will output shape: Just modify the values to get what you need. To understand the values in bezier curve, take a look at this: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo
  12. enpu

    Virtual Joystick plugin

    This sounds like a bug. Will add to the roadmap. Thanks!
  13. Makes sense. I would need to add support for bezier curves to the Graphics. Not just sure yet what would the API for it be. Should it be included somehow in the drawPolygon function. Any suggestions?
  14. Is there a reason why it needs to be Graphics object? Are you dynamically changing it in the game? If not, then what @Wolfsbane suggested should work ok.