MCAfrica needs to be able to toggle between Fight & Passive variants
Opened this issue · 0 comments
saricden commented
[Problem]
We need to consolidate our two different MCAfrica
sprite classes into one, and have it automatically switch modes when entering or exiting the cave.
[Solution]
- Load both the arms & noarms sprites into the same class extending
Container
. - Also load the arm images, gun.
- Toggle visibility & mode/active state of
MCAfrica
components (noarms v arms). - Create a y-axis limited range invisible "border" at cave entrance/exit.
- Add detection if
mc
instance is on the left or right side (in cave or out), and switch modes based on that.