console

package
v0.0.0-...-1f209e5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ConsoleHeight = 130

Variables

View Source
var FuturaTTF []byte

Functions

func LoadFont

func LoadFont() (*text.GoTextFaceSource, error)

Types

type Console

type Console struct {
	CurrentLine string
	Lines       []string
	InputLines  []string
	State       ConsoleState
	PosY        int
	Font        *text.GoTextFaceSource
	Events      chan ConsoleEvent
	Game        *gamelib.Game
}

func MakeConsole

func MakeConsole(game *gamelib.Game) *Console

func (*Console) Draw

func (console *Console) Draw(screen *ebiten.Image)

func (*Console) IsActive

func (console *Console) IsActive() bool

func (*Console) Run

func (console *Console) Run(command string)

func (*Console) Update

func (console *Console) Update()

type ConsoleEvent

type ConsoleEvent interface {
}

type ConsoleQuit

type ConsoleQuit struct {
}

type ConsoleState

type ConsoleState int
const (
	ConsoleOpen ConsoleState = iota
	ConsoleClosed
)

Jump to

Keyboard shortcuts

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