I have a new question. ^^ Question 1: Switch between Map ScreensWhat is the most effective way to switch through "Screen Types" (eg: Area Map, World Map, Battle Screen)?
I was thinking of using something similar to a JTabbedPane, but without the tabs
Instead, switching between the "tabs" would be initiated through invisible events that executed when the player is standing on the tile.
psedocode-ish==> "event.setLocation( mapType, mapID, playerLocation )"
Where mapType would be "Area Map", "World Map", "Menu Screen", or "Battle Screen" etc
mapID would call the Map class to paint the map on the current "tab"
and set the avatar at playerLocation[ x ][ y ] on the map
I be using to achieve "screen switching"? I don't really think a JTabbedPane would be my best option, considering I'd most likely need another JTabbedPane-ish inside the Menu Screen.Question 2: Layout LayeringWhat is the best way to lay out each Screen in each "tab"?
I was thinking of using a MixedLayout in order to achieve a layering effect.
Or is there an easier way to create layers?
Layer 1 - Background Layer containing the tiled map
Layer 2 - Objects on the tiled map (eg: a box, a table, a bed)
Layer 3 - Player and Events (eg: treasure, NPCs, exit-map-events)
Layer 4 - Player Information (eg: health bar, help menu, etc)