Gurki
May 16, 2022, 10:35am
1
I do an simple Tower defend game
project
(the Doozer have to find a way to the Base)
The idea was You can choose if you defend or attack the tower…
so I need an Ai for defence and an Ai for offence…
slowly while developing I noticed: I can make matches AI(Def) against AI(Off)
I could make stats, bufs, nerfs without force every friend to test may Game
I’m in a very early state of development and I don’t really now what I’m doing… but I’m
verry happy for every hint to how to design my code to make both AI better…
thanx
I’m not interested to use external libarys/packeges/imports aso
Long time ago I created a pathfinder for myself, using raycasts. The project is unfortunately private, but I’m showing it to give you an idea.
2 Likes
Gurki
May 18, 2022, 5:13am
3
Thanx a lot. I can see how it works.
What I’am trying here is to find some complete pathes ahead, and than let the ai
choose one depending on ai’ strategy…
So I can compare in a statistic the results with the stradegy…
If you are only looking for doing pathfinding in two dimensions then there are several open/free JS libraries that you can use with PlayCanvas.
Here is one: PathFinding.js
1 Like
Based on your goal I think you need to think again about the suggestion of @Leonidas indeed.
2 Likes
Gurki
May 19, 2022, 8:25am
7
Cool, nearly what I’m looking for…
as always I’ll delay this topic as I’m stuck and do something else so [solved]
Gurki
May 24, 2022, 10:18am
8
Do I need to import that lib, if i want to use this?