diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-03-10 12:07:40 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-03-10 12:07:40 -0400 |
commit | 57fe8f3c4124819b95164547333a33f4c45eac8d (patch) | |
tree | 99dd89a0c1cf0a8ceaa2ff941549d631950efd11 /src/simulation.cpp | |
parent | bf34f891c5c09e6c8a42797085860fa80ab53814 (diff) | |
download | dispatcher-57fe8f3c4124819b95164547333a33f4c45eac8d.tar.gz dispatcher-57fe8f3c4124819b95164547333a33f4c45eac8d.tar.bz2 dispatcher-57fe8f3c4124819b95164547333a33f4c45eac8d.zip |
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.
Diffstat (limited to 'src/simulation.cpp')
-rw-r--r-- | src/simulation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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( | |||
342 | } | 342 | } |
343 | } | 343 | } |
344 | 344 | ||
345 | if (!level_.getTileset().canEntityMoveTo( | 345 | if (!level_.getTileset(Layer::map).canEntityMoveTo( |
346 | entity.colliderType, | 346 | entity.colliderType, |
347 | level_.at(shouldMoveTo))) | 347 | level_.at(shouldMoveTo))) |
348 | { | 348 | { |