world

package
v0.0.0-...-01359f7 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	X_SIZE        = 16
	Y_SIZE        = 16
	Z_SIZE        = 16
	TILE_WIDTH    = 64
	TILE_HEIGHT   = 64
	TILE_DEPTH    = 96
	TILE_OFFSET_X = 75
	TILE_OFFSET_Y = 35
)

Variables

This section is empty.

Functions

func VectorISO

func VectorISO(v rl.Vector3) rl.Vector3

func VectorOrtho

func VectorOrtho(v rl.Vector3) rl.Vector3

Types

type Chunk

type Chunk struct {
	Tiles [X_SIZE][Y_SIZE][Z_SIZE]*Tile
}

func (*Chunk) Center

func (chunk *Chunk) Center() rl.Vector3

type Tile

type Tile struct {
	ID uint16
}

type World

type World struct {
	Name  string
	Chunk Chunk
}

func New

func New(name string) *World

func (*World) Center

func (w *World) Center() rl.Vector3

Jump to

Keyboard shortcuts

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