Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultChunkSize int32 = 16 // in tiles
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Frame ¶
type Frame struct {
// contains filtered or unexported fields
}
Frame represents the visible region of a tilemap in world coordinates.
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator provides a way to iterate over tiles in the visible frame of a tilemap.
type Map ¶
Map represents the decoded tilemap data from a Tmx file.
It provides methods to retrieve tile data, manage layers, and buffer the map for rendering.
func (*Map) BufferFrame ¶
BufferFrame buffers tile data for current frame.
func (*Map) Frame ¶
Frame returns the visible region of the tilemap in world coordinates. Use this to get or set the visible region of the map.
Frame only returns the dimensions of the visible region of the tilemap. It does not update or buffer the map for rendering.
Click to show internal directories.
Click to hide internal directories.