kble

package module
v0.0.0-...-8c88d53 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderLen int = 6

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level struct {
	Format int

	Width  int
	Height int
	Size   int
	Data   []int
	// contains filtered or unexported fields
}

func New

func New(width int, height int) Level

func Read

func Read(path string) (Level, error)

func ReadFunc

func ReadFunc(readFile func(string) ([]byte, error), path string) (Level, error)

func (Level) GetTile

func (level Level) GetTile(x int, y int) (int, error)

func (*Level) SetTile

func (level *Level) SetTile(x int, y int, tile int) error

func (Level) Write

func (level Level) Write(path string)

func (Level) WriteFunc

func (level Level) WriteFunc(writeFile func(string, []byte, os.FileMode) error, path string)

Jump to

Keyboard shortcuts

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