Example prototype for monster spawning management added in 1-1.

This commit is contained in:
2023-07-07 06:48:17 -05:00
parent 6b81cd6e84
commit 85af67fa60
3 changed files with 49 additions and 65 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ void Pathfinding::Initialize(){
nodes[y*game->WORLD_SIZE.x + x].vecNeighbours.push_back(&nodes[(y + 1) * game->WORLD_SIZE.x + (x + 1)]);
}
// Manually positio the start and end markers so they are not nullptr
// Manually position the start and end markers so they are not nullptr
nodeStart = &nodes[(game->WORLD_SIZE.y / 2) * game->WORLD_SIZE.x + 1];
nodeEnd = &nodes[(game->WORLD_SIZE.y / 2) * game->WORLD_SIZE.x + game->WORLD_SIZE.x-2];
}