creating the nodes for path finding during run time - more like path making and more
- by bigbadbabybear
i'm making my 1st game. i'm using javascript as i currently want to learn to make games without needing to learn another language but this is more of a general game dev question
its a 2d turn-based tile/grid game. you can check it here http://www.patinterotest.tk/
it creates a movable area when you hover a player and it implements the A* algo for moving the player.
The Problem: i want to make the 'dynamic movable area creation' already implement a limited number of steps for a player.
The Questions:
what is a good way to do this?
is there another algorithm to use for this?
the A* algorithm needs a start and destination, with what i want to do i don't have a destination
or should i just limit the iteration of the A* algo to the steps variable?
hopefully you understand the problem & questions easily