tmx

package
v0.0.0-...-c712ff3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package tmx contains functions for parsing Tiled maps and extracting their properties.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMap

func GetMap(filename string) (*gotmx.Map, error)

GetMap returns a decoded Tiled map from the given filename.

Types

type MapDimensions

type MapDimensions struct {
	W     int
	H     int
	TileW int
	TileH int
}

MapDimensions stores the width, height, tile width, and tile height for a Tiled map.

func Dimensions

func Dimensions(m *gotmx.Map) (*MapDimensions, error)

Dimensions returns the width, height, tile width, and tile height of a map.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL