diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 1b74143..4dce6a5 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -19,7 +19,17 @@ int main(int, char**) | |||
19 | entity.gridPos.y() = 5; | 19 | entity.gridPos.y() = 5; |
20 | entity.size = TILE_SIZE; | 20 | entity.size = TILE_SIZE; |
21 | entity.speed = 3.0; | 21 | entity.speed = 3.0; |
22 | entity.player = true; | 22 | entity.controllable = true; |
23 | entity.colliderType = ColliderType::player; | ||
24 | entity.colorVal = 180; | ||
25 | |||
26 | Simulation::id_type crateId = sim.emplaceEntity(); | ||
27 | Entity& crate = sim.getEntity(crateId); | ||
28 | crate.gridPos.x() = 4; | ||
29 | crate.gridPos.y() = 5; | ||
30 | crate.size = TILE_SIZE; | ||
31 | crate.speed = 4.0; | ||
32 | crate.playerCanPush = true; | ||
23 | 33 | ||
24 | bool quit = false; | 34 | bool quit = false; |
25 | 35 | ||