preview

Final Project: Vindolanda

Decent Essays

Although initially, multiple maps were intended to be playable in one games run, the final project will be displayed only using one of these maps, many more maps can be created but traversing between the two or more has been omitted from the final piece, something that can definitely be improved upon after the project. Considering players will be attacking the portion of the wall known as Vindolanda, the map created was a 16x16 grid, of numerous tiles, this was the first thing that was completed within the project before any movement of pathfinding, nonetheless it was a key point for the game, there would be nothing to play, if there was nothing to play it on. Firstly, all tiles are formed with two dimensions of coordinates, this allows …show more content…

Whereas in the case of hexagons, as mentioned before positions at even x and odd x aren’t actually the same, the neighbor that sits to the left and up for an even hexagon is -1, but for an odd is +15, this issue exists through all 4 horizontal neighbors, although this was difficult, the Math functions Unity provided, modulo arithmetic was used to find whether we had an even or odd x-coordinate, then the neighbors were set accordingly dependent on the result. Furthermore, edge cases were included by simply neglecting the attempt to add a neighbor which didn’t exist, all checked via simple if statements for each type of edge possible. Without knowing which tile neighbored one another, the A* pathfinding would fall to ruin, therefore this was critical to add, and although hard coding the neighbors was a valid approach, it would’ve disabled the ability to have different sized maps, through the completion of this function of neighboring multiple sized maps can be created and the A* pathfinding will work flawlessly. To begin with, there was only one type of player character being used, but to create more use for the evaluation step, educational purposes including the analytics as well as all around enjoyment of the game, multiple unit types have been included, these units are known as Leader, Scout

Get Access