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.
It's 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* algorithm 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* algorithm to the steps variable?