Documentation ¶
Overview ¶
Stone allows rendering TMX maps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Struct for graphical representation of TMX map.
func (*Map) Draw ¶
Draw use specified matrix to draw map on target. Draws whole map starting from position specified in given matrix.
func (*Map) DrawPart ¶
DrawSize use specified matrix and size to draw map on target. Draws part of the map in specified size starting from position specified in given matrix.
func (*Map) PositionLayer ¶
PositionLayer returns visible layer on specified position on map or nil if there is no tiles on this position.
Directories ¶
Path | Synopsis |
---|---|
example
|
|
camera
Example for rendering TMX map with movable camera.
|
Example for rendering TMX map with movable camera. |
layers
Example for identifying map layer on specific position.
|
Example for identifying map layer on specific position. |
layerscamera
Example for identifying map layer on specific position while moving camera.
|
Example for identifying map layer on specific position while moving camera. |
map
Example for rendering TMX map.
|
Example for rendering TMX map. |
Click to show internal directories.
Click to hide internal directories.