Try to get a good position to spawn at. Also gets a good initial move-direction based on where you spawn.
This commit is contained in:
@@ -29,4 +29,9 @@ void game_world_destroy_entity(Game_World *world, Entity_ID entity_id, bool dest
|
||||
|
||||
Entity *game_world_try_get_entity_by_id(Game_World *world, Entity_ID id);
|
||||
|
||||
#define MAX_ATTEMPTS_AT_FINDING_POSITION_TO_SPAWN 8
|
||||
|
||||
bool game_world_find_position_to_spawn(Game_World *world, uint16_t *out_x, uint16_t *out_y);
|
||||
Entity_Movement_Direction game_world_choose_initial_move_direction_based_on_coords(Game_World *world, uint16_t x, uint16_t y);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user