diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-02-16 10:02:05 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-02-16 10:02:05 -0500 |
commit | a34396730c8d993fea84a454690bd13ea9a9b403 (patch) | |
tree | 5f226ee45acaa7070a1bb821df3320e907a9ecb2 /src/main.cpp | |
parent | 8ffb27ab09ff567a159e5be5a243fd3967084977 (diff) | |
download | dispatcher-a34396730c8d993fea84a454690bd13ea9a9b403.tar.gz dispatcher-a34396730c8d993fea84a454690bd13ea9a9b403.tar.bz2 dispatcher-a34396730c8d993fea84a454690bd13ea9a9b403.zip |
Started implementing pushing, but not really
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 | ||