From 57fe8f3c4124819b95164547333a33f4c45eac8d Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 10 Mar 2019 12:07:40 -0400 Subject: Editor now allows tile placement You can scroll through the three layers (map, track, object) with Z/X. You can swap between focusing on the map and the tileset with TAB. You can place tiles with enter or space. Pretty rudimentary, but it's a start. --- src/simulation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/simulation.cpp') diff --git a/src/simulation.cpp b/src/simulation.cpp index 4d8ec02..62026a6 100644 --- a/src/simulation.cpp +++ b/src/simulation.cpp @@ -342,7 +342,7 @@ bool Simulation::moveEntityOnGrid( } } - if (!level_.getTileset().canEntityMoveTo( + if (!level_.getTileset(Layer::map).canEntityMoveTo( entity.colliderType, level_.at(shouldMoveTo))) { -- cgit 1.4.1