Thinking about how to check a players move on a given map.
Map consists of (to keep this sample simple) 5 X 5 rows = 25 fields
The player should only be able to move to the next field from his starting field
(but in all directions) and positioned centered in the new field.
All 25 fields are objects.
How would you check what fields are allowed?
Map consists of (to keep this sample simple) 5 X 5 rows = 25 fields
The player should only be able to move to the next field from his starting field
(but in all directions) and positioned centered in the new field.
All 25 fields are objects.
How would you check what fields are allowed?
Last edited: