berna

Members
  • Content count

    5
  • Joined

  • Last visited

  1. berna

    Example of rts space game

    https://github.com/ebanreb/game10 This messy thing, but I hope it works for something. Greetings
  2. berna

    Example of rts space game

    To move the units as a group, I based myself on examples and information that I found on the network. A grid is created with enough spaces for all the units that you want to move, making each unit choose an empty space in the grid. Thank you.
  3. berna

    Example of rts space game

    Yes, it is something that I have to correct, but it should not be a problem to load the page. Thank you.
  4. berna

    Example of rts space game

    Small project of a space strategy game (phaser-2.6.2): http://xanela.hol.es/rts/ Graphics by http://millionthvector.blogspot.com.es/p/free-sprites.html
  5. berna

    How to stop moveTo

    no tween update: var dist=game.physics.arcade.distanceToXY(player, playerPos.x , playerPos.y); if ( (Math.round(dist)>=-1 && Math.round(dist)<=1) || playerMoving == false) { player.body.velocity.x=0; player.body.velocity.y=0; playerMoving = false; } else{ game.physics.arcade.moveToXY(player, playerPos.x , playerPos.y, 150); }