saricden/no-place-like

MCAfrica needs to be able to toggle between Fight & Passive variants

Opened this issue · 0 comments

[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]

  1. Load both the arms & noarms sprites into the same class extending Container.
  2. Also load the arm images, gun.
  3. Toggle visibility & mode/active state of MCAfrica components (noarms v arms).
  4. Create a y-axis limited range invisible "border" at cave entrance/exit.
  5. Add detection if mc instance is on the left or right side (in cave or out), and switch modes based on that.