How do I draw on a JPanel from multiple outside classes?
Instead of having a single JPanel, why don’t you try with a CardLayout and switch whether to show the InnerWorld or the OuterWorld according to a flag that determines where in the program you’re at. As you’re implementing KeyListener, I think that’s for you to be able to move your character, please take a look … Read more