AMOS TOME Series IV Manual Index | 48 |
Map Do x,y
Draws an area of the map, onto the current screen in the selected map area
(see MAP VIEW). The top left of this area starts at tile
co-ordinates x,y on the map. Thus changing X or Y by 1 would move the
view around the map by 1 tile. This can be used for a very simple
form of scrolling.
Because Map Do redraws the entire viewing area, it is normally only used at the start of a scrolling routine, and then Map Left/Right/Top/Bottom or Map Handle are used.
Map View x1,y1 to x2,y2
Defines the area of the screen to be used for displaying maps. All
co-ordinates are in pixels. Changing Map view will not automatically
re-display the map, you will have to use the Map Do command
for that. Map View also doesn't clip the area to be displayed, as it
only informs TOME where it can place tiles. The Clip command
can be used in combination though. See the MAP_VIEW_Demo.Amos
file for an example of this in use.
Map Left x,y
Map Right x,y
Map Top x,y
Map Bottom x,y
These 4 commands work in the same way as Map Do, however they only
re-draw 1 edge of the map area. This is useful for high speed
scrolling, as using these, you are only re-drawing the edge that has
just scrolled on. See the Edge_Scroll_Demo.Amos file for an example.
Generally, the idea with these commands, is to scroll the screen by one tile, and then use them to re-draw the now vacant strip of tiles that will have scrolled onto the screen.
Tile Size x,y
Sets the size of the tiles (icons) to be used. x & y can be either 16
or 32 (pixels). The tile size would normally need to be set to the
size of the tiles you are using, however, you can set the tile size
to different values to space the tiles out, or contract them together
(The TOME Editor uses this for its overview mode).
When using the List Tile command, Tile Size can be used to counteract the extra pixel line space that List Tile