Documentation ¶
Index ¶
- Constants
- func NewBackgroundType() (resource.Type, error)
- type Background
- type BackgroundType
- type Row
- type Tile
- type TileGrid
- func (tg *TileGrid) Center() topdown.Point[float64]
- func (tg *TileGrid) Draw(screen *ebiten.Image, cam camera.Camera)
- func (tg *TileGrid) DrawLayer() int
- func (tg *TileGrid) DrawSortValue() float64
- func (tg *TileGrid) Initialize(mgr resource.Manager) error
- func (tg *TileGrid) MakeRows(tiles map[string]*Tile) error
- func (tg *TileGrid) VisibleColumns(visible topdown.Rectangle[float64]) (int, int)
- func (tg *TileGrid) VisibleRows(visible topdown.Rectangle[float64]) (int, int)
Constants ¶
View Source
const (
RefIDSeparator = " "
)
View Source
const TileGridSchemaStr = `` /* 614-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func NewBackgroundType ¶
Types ¶
type Background ¶
type Background struct {
*TileGrid
}
type BackgroundType ¶
type BackgroundType struct {
// contains filtered or unexported fields
}
func (*BackgroundType) Load ¶
func (pt *BackgroundType) Load(path string) (resource.Resource, error)
func (*BackgroundType) Name ¶
func (pt *BackgroundType) Name() string
type TileGrid ¶
type TileGrid struct { Origin topdown.Point[float64] `json:"origin"` TileSize topdown.Size[int] `json:"tileSize"` TileLinks map[string]string `json:"tileLinks"` TileRows []string `json:"tileRows"` // contains filtered or unexported fields }
func (*TileGrid) DrawSortValue ¶ added in v0.5.0
func (*TileGrid) VisibleColumns ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.