Refactor some code to have better naming and move Point and related point things into their own .hpp.
This commit is contained in:
parent
c19cd707d1
commit
5a123ae74c
7 changed files with 45 additions and 40 deletions
4
gui.cpp
4
gui.cpp
|
@ -278,8 +278,8 @@ void GUI::configure_world() {
|
|||
ActionLog log{{"Welcome to the game!"}};
|
||||
$world.set<ActionLog>(log);
|
||||
|
||||
SpatialHashTable collider;
|
||||
$world.set<SpatialHashTable>(collider);
|
||||
spatial_map collider;
|
||||
$world.set<spatial_map>(collider);
|
||||
|
||||
$world.assign<Position>(player.entity, {$game_map.place_entity(0)});
|
||||
$world.assign<Motion>(player.entity, {0, 0});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue