level

package module
v0.0.0-...-53ffb50 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MIT Imports: 3 Imported by: 0

README

level

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level struct {
	Map   Map `json:"tables"`
	Spawn Point
}

func Open

func Open(path string) (Level, error)

type Map

type Map struct {
	Wall []Wall `json:"Wall"`
	Plot []Plot `json:"Plot"`
}

type Plot

type Plot struct {
	Points []Point `json:"points"`
}

type Point

type Point struct {
	X int `json:"x"`
	Y int `json:"y"`
}

type Wall

type Wall struct {
	Points    []Point `json:"points"`
	Thickness int     `json:"thickness"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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