From ca4935cb65325edbd45d4a3aacc921ea9ed9483b Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 20 Feb 2021 13:19:15 -0500 Subject: 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. --- src/sprite.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sprite.h') 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: vec2i collisionSize; std::string interactionScript; std::string walkthroughScript; + std::string enclosureZone; // Animation bool isAnimated = false; -- cgit 1.4.1