Movement and Attack grids
Only a very small update.
I have managed to refactor my code so that a character now only has one list called ActionGrid.
The purpose of the grid is to provide the data of squares that should be rendered for a given action.
The engine there has a variable of an enum for the current action type (Move or Attack at the moment).
By using the enum I'm able to then decide what colour to render the grid (red for attack, yellow for move).
I have managed to refactor my code so that a character now only has one list called ActionGrid.
The purpose of the grid is to provide the data of squares that should be rendered for a given action.
The engine there has a variable of an enum for the current action type (Move or Attack at the moment).
By using the enum I'm able to then decide what colour to render the grid (red for attack, yellow for move).
Labels:
Attack Grid,
Movement Grid

No Response to "Movement and Attack grids"
Post a Comment