WIP: Add a selection of the spawnpoint for every players #108

Draft
CoCo_Sol wants to merge 12 commits from select-spawnpoint into main
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 54eb8d77b5 - Show all commits

View file

@ -39,7 +39,7 @@ fn init_spawn_point(
.abs();
if radius == 0 {
panic!("Map radius must be greater than 0");
return;
}
let map_hashmap: HashMap<&TilePosition, Entity> = map.iter().map(|(e, p)| (p, e)).collect();

View file

@ -79,7 +79,7 @@ fn lobby_ui(
let index = *map_size as u16;
let nomber_of_players = all_players_query.iter().count() as u32;
let radius = nomber_of_players as u16 * 2 * index;
let radius = nomber_of_players as u16 * 2 * (index+1);
// Start the game.
for player in all_players_query.iter() {