tilemap

package
v0.0.0-...-8333e70 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const SCALE = 4

SCALE is the default scale for each drawn tile within each tilemap.

Variables

This section is empty.

Functions

func Load

func Load(w *ecs.World, path string)

Load will take the given world and path To load a resource previously loaded and create a new tilemap from it using engo's inbuilt Tiled support and then set it beneath the player.

Types

type Tile

type Tile struct {
	// ecs.BasicEntity to save the unique ID
	// of the specific tile.
	ecs.BasicEntity
	// common.RenderComponent to store the
	// drawable for the tile object.
	common.RenderComponent
	// common.SpaceComponent to save the
	// tile's position and rotation.
	common.SpaceComponent
}

Tile will contain data required to draw a full tilemap

Jump to

Keyboard shortcuts

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