p8file

package
v0.0.0-...-31017a7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package p8file implements a parser and formatter for https://pico-8.fandom.com/wiki/P8FileFormat.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cart

type Cart struct {
	Version      int
	Lua          []byte
	Spritesheet  []byte
	Spriteflags  []byte
	Label        []byte
	Map          []byte
	SoundEffects []byte
	Music        []byte
}

func Parse

func Parse(r io.Reader) (Cart, error)

func (Cart) LabelImage

func (c Cart) LabelImage() *image.Paletted

func (Cart) MapImage

func (c Cart) MapImage() *image.Paletted

func (Cart) SpriteAt

func (c Cart) SpriteAt(i uint8) *image.Paletted

func (Cart) SpriteImage

func (c Cart) SpriteImage() *image.Paletted

Jump to

Keyboard shortcuts

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