Map PageMap page contains a grid of images (generally forming a map) which can be revealed as the game proceeds.
Every cell of the grid is a label widget named map_x where x is the ID number of the cell. It can contains an image representing a part of the whole game map.
The map page is recognized by the player with the name "inventory_map".
The "inventory_map" container contains a clipview named "inventory_map_panel". This name is necessary to make this element to be recognized by the Player.
The frame must be named "inventory_map_frame" to be recognized and managed by Player.
Following image shows how the map page must be structured to be managed by Player:
This structure is necessary to allow the map to be bigger that the screen: the clipview has dimensions less than the screen while the frame it contains can have dimensions greater than the screen.
Then the map frame can be scrolled using, by default, the A/D and W/S keys.
HOW IT WORKS
There are a lot of games in which not all the map is visible at start, it is gradually revealed as the game proceed.
The map system in EasyGamePack has been designed with this in mind.
But, how to reveal map pieces?
Player character automatically shows a map piece when receiving the message "MAP_X" where X is the ID number of the map cell to show.
In this way you can:
|