From a34396730c8d993fea84a454690bd13ea9a9b403 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 16 Feb 2019 10:02:05 -0500 Subject: Started implementing pushing, but not really --- src/main.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') 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**) entity.gridPos.y() = 5; entity.size = TILE_SIZE; entity.speed = 3.0; - entity.player = true; + entity.controllable = true; + entity.colliderType = ColliderType::player; + entity.colorVal = 180; + + Simulation::id_type crateId = sim.emplaceEntity(); + Entity& crate = sim.getEntity(crateId); + crate.gridPos.x() = 4; + crate.gridPos.y() = 5; + crate.size = TILE_SIZE; + crate.speed = 4.0; + crate.playerCanPush = true; bool quit = false; -- cgit 1.4.1