From 1c462ef3780b33468ed93dde3ab6178765807ffe Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 5 Mar 2021 20:50:51 -0500 Subject: Added MirrorSystem This is really just for letting one sprite mirror another's movement and animation. I tried doing it in the BehaviourSystem, but you get stuttering if you do it earlier in the loop than the CharacterSystem, so I ended up having to make a new system just for this thing that will not happen very often. --- src/map.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 1167290..eb926c7 100644 --- a/src/map.h +++ b/src/map.h @@ -32,6 +32,9 @@ struct Prototype { int movementSpeed = -1; std::string enclosureZone; bool masked = false; + MirrorType mirrorType = MirrorType::None; + int mirrorAxis = 0; + std::string spriteToMirror; }; struct Trigger { -- cgit 1.4.1