engine

package
v0.0.0-...-52d771f Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ViewHeight = 240 // 2
View Source
const ViewWidth = 426 // *2

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Log        xlog.Log
	Msg        string
	Pressed    []ebiten.Key
	Script     strings.Reader
	DebugRow   int
	ScreenSize image.Point
	At         image.Rectangle
	Root       *xui.Root
	Zone       *xmap.Zone
	Debug      bool
}

func New

func New(sw, sh int) *Engine

func (*Engine) Draw

func (g *Engine) Draw(screen *ebiten.Image)

func (*Engine) Layout

func (g *Engine) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)

func (*Engine) Update

func (g *Engine) Update() error

Jump to

Keyboard shortcuts

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