wayfinder

Members
  • Content count

    457
  • Joined

  • Last visited

  • Days Won

    2

wayfinder last won the day on July 20 2015

wayfinder had the most liked content!

About wayfinder

  • Rank
    Advanced Member

Contact Methods

  • Website URL
    http://twitter.com/wayfu

Profile Information

  • Gender
    Not Telling
  • Location
    Berlin

Recent Profile Visitors

1,404 profile views
  1. wayfinder

    Phaser + DragonBones

    I used Leshy Sprite Tool to generate a working atlas. TexturePacker will also work.
  2. wayfinder

    Documented steps on getting a Phaser game on Steam

    I wouldn't mind a few words on the whole process, so if your time allows for both...
  3. Some WebGL features are only available to power-of-2 sized textures.
  4. wayfinder

    Sprite from Graphics and Group from Sprite

    if you need to use a graphics object, you can pass graphics.generateTexture() as the key for the sprite.
  5. wayfinder

    How to use render targets in Phaser

    game.make instead of game.add—this creates an object without adding it to the display list.
  6. wayfinder

    Phaser Slider UI component (just released)

    That's not at all what I expected from the name
  7. wayfinder

    Stop rendering stuff outside of the game world

    Are you talking about cutting off all pixels outside the world bounds while still drawing the portions of images that are inside the bounds? Or would it be enough to just not draw anything outside the world bounds, with the implication that portions of elements that are partially inside would disappear as well?
  8. wayfinder

    No world borders?

    this.world.bounds.x = -Infinity; this.world.bounds.y = -Infinity; this.world.bounds.width = Infinity; this.world.bounds.height = Infinity; this.camera.bounds.x = -Infinity; this.camera.bounds.y = -Infinity; this.camera.bounds.width = Infinity; this.camera.bounds.height = Infinity;
  9. wayfinder

    Phaser Inspector Plugin

    Skeptron: that's a feature in Phaser.Debug, check the docs
  10. wayfinder

    Phaser Inspector Plugin

    the text-font! if you want to test with webgl, you can just take your canvas example and change the phaser game invocation to say Phaser.WEBGL instead of Phaser.CANVAS or Phaser.AUTO
  11. wayfinder

    Phaser Inspector Plugin

    In WebGL, I don't think renderTexture.source is even there... Also, for some reason the custom font doesn't work here (Win 7 Chrome)
  12. wayfinder

    Phaser Inspector Plugin

    The plugin seems to have trouble with renderTextures. It expects a baseTexture.source and they don't have those apparently.
  13. wayfinder

    Game scaling help

    I don't scale game.input. my setup is a bit more complicated than yours, i think—since i have per-object parallaxing, i keep a separate camera focus and camera pan position and assemble them each frame, calculating each object's position according to its parallax depth. it took me a big long while to puzzle out all the relationships between values so that everything worked, and i'm not gonna lie, for a while i thought i'd have to scrap the whole idea, but i guess I grew with the challenge and my perseverance paid off here are two very useful functions i am using, perhaps they will be useful to you as well: inGameCoords: function(browserCoordinates) { if (browserCoordinates) { var ret = new Phaser.Point(); ret.setTo((browserCoordinates.x + this.camera.x) * this.inverseCamScale, (browserCoordinates.y + this.camera.y) * this.inverseCamScale); return ret; } else return null; }, inBrowserCoords: function(gameCoordinates) { if (gameCoordinates) { var ret = new Phaser.Point(); ret.setTo(gameCoordinates.x * this.camera.scale.x - this.camera.x, gameCoordinates.y * this.camera.scale.y - this.camera.y); return ret; } else return null; } edit: these assume that your game uses the whole browser
  14. wayfinder

    Game scaling help

    in my code, i scale just the camera and not the world...
  15. wayfinder

    Game scaling help

    have you tried using pointer.worldX/worldY instead of x/y—this would probably be completely unscaled