PRSoluções

Members
  • Content count

    43
  • Joined

  • Last visited

About PRSoluções

  • Rank
    Advanced Member

Contact Methods

  • Twitter
    prsolucoes
  1. Golandy game - Camera follow and see around the player

    Hi, I have changed the code and tested here on my monitors. Can you test on your device too? Code: https://github.com/prsolucoes/golandy-web/blob/master/www/js/states/GameState.js#L195 Thanks.
  2. Golandy game - Camera follow and see around the player

    I have updated the code and to phaser 2.7.10 to anyone help me please. http://golandy.prsolucoes.com/ The code of this part of game is here: https://github.com/prsolucoes/golandy-web/blob/master/www/js/states/GameState.js#L190 Thanks.
  3. Golandy game - Camera follow and see around the player

    I already tried it. My current code: var layerWidth = context.floorLayer.layer.widthInPixels * context.floorLayer.scale.x; var layerHeight = context.floorLayer.layer.heightInPixels * context.floorLayer.scale.y; game.world.setBounds(-(layerWidth/2), -(layerHeight/2), layerWidth * 2, layerHeight * 2); And the result:
  4. Golandy game - Camera follow and see around the player

    Tried this code too: var layerWidth = context.floorLayer.width * context.floorLayer.scale.x; var layerHeight = context.floorLayer.height * context.floorLayer.scale.y; game.world.setBounds(-(layerWidth/2), -(layerHeight/2), layerWidth * 2, layerHeight * 2); And the result is near the same. Attached. The camera show the out map area. But the map is cutted and the other objects no.
  5. Golandy game - Camera follow and see around the player

    Hi, Changed the code to: var layerWidth = context.floorLayer.width; var layerHeight = context.floorLayer.height; game.world.setBounds(-layerWidth, -layerHeight, layerWidth, layerHeight); But it cut the image. See the screenshot. Thanks.
  6. Golandy game - Camera follow and see around the player

    Ok, thanks. I will ty it. I think camera has a offset that can be setted to work with this problems. I read the source, but i didnt find.
  7. Golandy game - Camera follow and see around the player

    Hi, Yes, i dont want that camera stop on map dimensions. I want the player always on camera center, but i dont know how i can do it more. On early versions my old code works. Today it is with the default behavior: http://golandy.prsolucoes.com Thanks.
  8. Golandy game - Camera follow and see around the player

    In the past, i only need change the camera. But it is not working more. var cameraX = Math.round((this.player.sprite.x) - (game.camera.width / 2)); var cameraY = Math.round((this.player.sprite.y) - (game.camera.height / 2)); if (cameraX != game.camera.X || cameraY != game.camera.Y) { game.camera.bounds = new Phaser.Rectangle(this.player.sprite.x + (game.camera.width / 2), this.player.sprite.y + (game.camera.height / 2), 0, 0); game.camera.x = cameraX; game.camera.y = cameraY; }
  9. Golandy game - Camera follow and see around the player

    Ok. I made a image manually to try explain better.
  10. Hi, On my open-source game Golandy: http://golandy.prsolucoes.com/ I want that the camera follow the player but see around the player and not the player move to top left corner and didnt see around the player or around the map. Can anyone help me? The source code of game state is here: https://github.com/prsolucoes/golandy-web/blob/master/www/js/states/GameState.js Thanks.
  11. Phaser 2.7: New WebGL Tilemap Renderer (Beta 3)

    Hi, Sometimes i get this error on phaser 2.7 beta 3. If i reload it works again. And when i click on button, bottom-left, the click was throught button and tilemap was clicked instead. Thanks.
  12. Phaser 2.7: New WebGL Tilemap Renderer (Beta 3)

    Updated. Still working. golandy.com.
  13. Phaser 2.7: New WebGL Tilemap Renderer (Beta 3)

    Hi, After update to beta2 the mouse/keyboard works again: http://golandy.com/ Sometimes everything stop animate, bomb dropping, the sea disappear, but i dont know hoe to reproduce it. Ty.
  14. Phaser 2.7: New WebGL Tilemap Renderer (Beta 3)

    Hi, I have updated my game to use Phaser 2.7 beta, you can check here: http://golandy.com/ After update, the player dont move more but no errors happen (dont move using keyboard or mouse). Thanks.
  15. Hi, Here is my game (beta version): http://golandy.com/ I dont know how to remove under click from bomb button. Tutorial: - Use mouse click to move or arrows - Use space to put bombs Thanks for any help.