ebiten

package
v0.0.0-...-7fee067 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	Width  int
	Height int
	ebiten.Game
	WindowTitle     string
	WindowScale     int
	BackgroundColor color.Color
	Console         game.Console
	// contains filtered or unexported fields
}

func New

func New(console game.Console) *Game

func (*Game) Draw

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

func (*Game) Exit

func (g *Game) Exit()

func (*Game) Layout

func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int)

func (*Game) Reset

func (g *Game) Reset(s interface{})

func (*Game) Run

func (g *Game) Run()

func (*Game) Update

func (g *Game) Update() error

type Keyboard

type Keyboard struct{}

func (Keyboard) IsDownJustPressed

func (Keyboard) IsDownJustPressed() bool

func (Keyboard) IsDownPressed

func (Keyboard) IsDownPressed() bool

func (Keyboard) IsLeftJustPressed

func (Keyboard) IsLeftJustPressed() bool

func (Keyboard) IsLeftPressed

func (Keyboard) IsLeftPressed() bool

func (Keyboard) IsPrimaryJustPressed

func (Keyboard) IsPrimaryJustPressed() bool

func (Keyboard) IsPrimaryPressed

func (Keyboard) IsPrimaryPressed() bool

func (Keyboard) IsRightJustPressed

func (Keyboard) IsRightJustPressed() bool

func (Keyboard) IsRightPressed

func (Keyboard) IsRightPressed() bool

func (Keyboard) IsSecondaryJustPressed

func (Keyboard) IsSecondaryJustPressed() bool

func (Keyboard) IsSecondaryPressed

func (Keyboard) IsSecondaryPressed() bool

func (Keyboard) IsUpJustPressed

func (Keyboard) IsUpJustPressed() bool

func (Keyboard) IsUpPressed

func (Keyboard) IsUpPressed() bool

type Mouse

type Mouse struct{}

func (Mouse) CursorPosition

func (m Mouse) CursorPosition() (int, int)

func (Mouse) CursorPositionFloat

func (m Mouse) CursorPositionFloat() (float64, float64)

func (Mouse) IsLeftClickJustPressed

func (m Mouse) IsLeftClickJustPressed() bool

func (Mouse) IsLeftClickPressed

func (m Mouse) IsLeftClickPressed() bool

func (Mouse) IsRightClickJustPressed

func (m Mouse) IsRightClickJustPressed() bool

func (Mouse) IsRightClickPressed

func (m Mouse) IsRightClickPressed() bool

Jump to

Keyboard shortcuts

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