info

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ControlsGP = []string{
	"MENU: START",
	"MOVEMENT: D-PAD",
	"CONFIRM/JUMP: BOTTOM BUTTON " + string(text.GpBtBottom),
	"CANCEL/BACK: RIGHT BUTTON " + string(text.GpBtRight),
	"",
	"SELECT CARROT: L/R SHOULDERS " + string(text.GpShoulders),
	"USE CARROT: LEFT BUTTON " + string(text.GpBtLeft),
}
View Source
var ControlsKB = []string{
	"MENU: " + string(text.KeyTAB),
	"MOVEMENT: WASD",
	"JUMP: SPACEBAR",
	"",
	"SELECT CARROT: " + string(text.KeyI) + " AND " + string(text.KeyP),
	"USE CARROT: " + string(text.KeyO),
}
View Source
var EditorControlsGP = []string{
	"MENU: START",
	"MOVEMENT: D-PAD",
	"ADD/REMOVE BLOCK: " + string(text.GpBtBottom) + "/" + string(text.GpBtRight) + " BUTTONS",
	"CHANGE BLOCK: L/R SHOULDERS " + string(text.GpShoulders),
	"CHANGE BLOCK GROUP: LEFT BUTTON " + string(text.GpBtLeft) + " + L/R SHOULDERS " + string(text.GpShoulders),
	"ROTATE BLOCK: L/R TRIGGERS " + string(text.GpTriggers),
	"MIRROR BLOCK: LEFT BUTTON " + string(text.GpBtLeft) + " + L/R TRIGGERS " + string(text.GpTriggers),
	"BLOCK VARIATION: UP BUTTON " + string(text.GpBtTop),
	"MODIFY SPECIAL BLOCK: LEFT BUTTON " + string(text.GpBtLeft) + " + BOTTOM BUTTON " + string(text.GpBtBottom),
}
View Source
var EditorControlsKB = []string{
	"MENU: " + string(text.KeyTAB),
	"MOVEMENT: WASD",
	"ADD/REMOVE BLOCK: ENTER/BACKSPACE",
	"CHANGE BLOCK/GROUP: ALT + MOVEMENT",
	"ROTATE BLOCK: Q/E",
	"MIRROR BLOCK: ALT + Q/E",
	"BLOCK VARIATION: V",
	"MODIFY SPECIAL BLOCK: ALT + ENTER",
}

Functions

This section is empty.

Types

type Layer

type Layer struct {
	// contains filtered or unexported fields
}

func New

func New(content []string) *Layer

func (*Layer) Draw

func (self *Layer) Draw(canvas *ebiten.Image)

func (*Layer) IsVisible

func (self *Layer) IsVisible() bool

func (*Layer) NewOption

func (self *Layer) NewOption(label string) menu.Option

func (*Layer) SetContent

func (self *Layer) SetContent(content []string)

func (*Layer) Show

func (self *Layer) Show()

func (*Layer) Update

func (self *Layer) Update(ctx *context.Context)

Jump to

Keyboard shortcuts

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