summary refs log tree commit diff stats
path: root/src/sprite.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-20 13:19:15 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-20 13:19:15 -0500
commitca4935cb65325edbd45d4a3aacc921ea9ed9483b (patch)
tree28376ffac0f817fc3f1f7290745e91d603fd59e8 /src/sprite.h
parent996076cf151a27a7a8d278aa4d15b28cfb196c46 (diff)
downloadtanetane-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.h1
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;