diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-20 13:19:15 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-20 13:19:15 -0500 |
commit | ca4935cb65325edbd45d4a3aacc921ea9ed9483b (patch) | |
tree | 28376ffac0f817fc3f1f7290745e91d603fd59e8 /src/sprite.h | |
parent | 996076cf151a27a7a8d278aa4d15b28cfb196c46 (diff) | |
download | tanetane-ca4935cb65325edbd45d4a3aacc921ea9ed9483b.tar.gz tanetane-ca4935cb65325edbd45d4a3aacc921ea9ed9483b.tar.bz2 tanetane-ca4935cb65325edbd45d4a3aacc921ea9ed9483b.zip |
Added enclosure zones
A sprite with an enclosure zone will collide with it if it attempts to leave the area defined by the zone. This is used to make sure that wandering sprites don't end up in weird places.
Diffstat (limited to 'src/sprite.h')
-rw-r--r-- | src/sprite.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sprite.h b/src/sprite.h index 82849fa..e0cff0c 100644 --- a/src/sprite.h +++ b/src/sprite.h | |||
@@ -53,6 +53,7 @@ public: | |||
53 | vec2i collisionSize; | 53 | vec2i collisionSize; |
54 | std::string interactionScript; | 54 | std::string interactionScript; |
55 | std::string walkthroughScript; | 55 | std::string walkthroughScript; |
56 | std::string enclosureZone; | ||
56 | 57 | ||
57 | // Animation | 58 | // Animation |
58 | bool isAnimated = false; | 59 | bool isAnimated = false; |