# Is possible to create RTS game with Phaser 3?

**URL:** <https://phaser.discourse.group/t/is-possible-to-create-rts-game-with-phaser-3/3866>\
**Category:** Phaser 3\
**Created:** [October 3, 2019, 6:23am UTC](https://phaser.discourse.group/t/is-possible-to-create-rts-game-with-phaser-3/3866 "2019-10-03T06:23:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_Soeparjo](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/william_soeparjo/32/1406_2.png) [@William\_Soeparjo](https://phaser.discourse.group/u/William_Soeparjo)\
**Post date:** [October 3, 2019, 6:23am UTC](https://phaser.discourse.group/t/is-possible-to-create-rts-game-with-phaser-3/3866/1 "2019-10-03T06:23:33Z")

</div>

Hi there

I have a plan to create RTS game.

So, i need these features:

- Pathfinding
- Follow other player
- Line of sight
- Radius detection

Basically there are 30 players, you and others are bot/AI.  
Each player will attacking closest other player if on line of sight and on radius.

Is possible to do this with Phaser 3? i don’t find any example or tutorial related to RTS game.

How about performance? especially on Mid end mobile devices

---

<div class="post-metadata">

**Author:** ![midejonai](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@midejonai](https://phaser.discourse.group/u/midejonai)\
**Post date:** [October 3, 2019, 12:14pm UTC](https://phaser.discourse.group/t/is-possible-to-create-rts-game-with-phaser-3/3866/2 "2019-10-03T12:14:03Z")

</div>

I don’t think any of the features you mentioned would be ready-to-use, out-of-the-box without custom code.  
But I’m certain that they **can** be implemented and supported.  
Following and radius detection are the simplest to make between the 4 you mentioned so I’d suggest some research on the other two first.

Best of luck!

---

<div class="post-metadata">

**Author:** ![snowbillr](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/snowbillr/32/332_2.png) [@snowbillr](https://phaser.discourse.group/u/snowbillr)\
**Post date:** [October 3, 2019, 1:00pm UTC](https://phaser.discourse.group/t/is-possible-to-create-rts-game-with-phaser-3/3866/3 "2019-10-03T13:00:53Z")

</div>

Yep, someone has already in fact! And it’s a really high quality production too: [https://phaser.io/news/2017/08/strike-tactics](https://phaser.io/news/2017/08/strike-tactics)

---

<div class="post-metadata">

**Author:** ![William\_Soeparjo](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/william_soeparjo/32/1406_2.png) [@William\_Soeparjo](https://phaser.discourse.group/u/William_Soeparjo)\
**Post date:** [October 3, 2019, 2:28pm UTC](https://phaser.discourse.group/t/is-possible-to-create-rts-game-with-phaser-3/3866/4 "2019-10-03T14:28:09Z")

</div>

I find this plugin [https://github.com/mikewesthad/navmesh](https://github.com/mikewesthad/navmesh)

I think it’s good compared to easystar, but it’s have less example, tutorial or documentation, so, it’s hard for me to implement this.

---

<div class="post-metadata">

**Author:** ![William\_Soeparjo](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/william_soeparjo/32/1406_2.png) [@William\_Soeparjo](https://phaser.discourse.group/u/William_Soeparjo)\
**Post date:** [October 3, 2019, 2:28pm UTC](https://phaser.discourse.group/t/is-possible-to-create-rts-game-with-phaser-3/3866/5 "2019-10-03T14:28:56Z")

</div>

I think it’s made with Phaser 2

---

<div class="post-metadata">

**Author:** ![midejonai](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@midejonai](https://phaser.discourse.group/u/midejonai)\
**Post date:** [October 4, 2019, 8:21am UTC](https://phaser.discourse.group/t/is-possible-to-create-rts-game-with-phaser-3/3866/6 "2019-10-04T08:21:28Z")

</div>

I’m pretty confident that Phaser 3 would give you a cleaner and easier to understand toolset for creating your games.

---

<div class="post-metadata">

**Author:** ![pixelburp](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/pixelburp/32/1937_2.png) [@pixelburp](https://phaser.discourse.group/u/pixelburp)\
**Post date:** [October 4, 2019, 9:20am UTC](https://phaser.discourse.group/t/is-possible-to-create-rts-game-with-phaser-3/3866/7 "2019-10-04T09:20:58Z")

</div>

Yes it’s possible, but Phaser doesn’t come with complex algorithms like pathfinding out of the box, that’s entirely up to the coder to build. Phaser is more of a suite of building-blocks - like Sprites, Animations, Scenes, Asset Loading etc. - from which you build up your Business Logic (or, more specifically in this case, the maths needed to calculate pathfinding.

Forget Phaser for a second, pathfinding is a more fundamental Mathematic problem, than a JS Framework one. Look into A\* (“A Star”) or Dykstra’s algorithm for basics on getting entities from A to B.
