player data on the stats screen

This commit is contained in:
devZoGok
2023-12-30 10:34:25 +02:00
parent 0a4f9218e2
commit 31eba177cb
14 changed files with 194 additions and 12 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ namespace battleship{
map->load(name, newMap);
if(newMap){
addPlayer(new Player(0, 0, 0));
addPlayer(new Player(0, 0, 0, Vector3(1, 1, 1)));
map->addSpawnPoint(Vector3::VEC_ZERO);
generatePlane(size);
}
@@ -64,7 +64,7 @@ namespace battleship{
int numPlayers = map->getNumSpawnPoints();
for(int i = 0; i < numPlayers; i++){
Player *player = new Player(0, 0, 0);
Player *player = new Player(0, 0, 0, Vector3(1, 1, 1));
map->loadPlayerGameObjects(player);
addPlayer(player);
}