controller

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlayController added in v0.5.0

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

func NewPlayController added in v0.5.0

func NewPlayController(window app.Window, engine *game.Engine, playData *data.PlayData) *PlayController

func (*PlayController) IsDrive added in v0.5.0

func (c *PlayController) IsDrive() bool

func (*PlayController) OnKeyboardEvent added in v0.5.0

func (c *PlayController) OnKeyboardEvent(event ui.KeyboardEvent) bool

func (*PlayController) OnMouseEvent added in v0.5.0

func (c *PlayController) OnMouseEvent(element *ui.Element, event ui.MouseEvent) bool

func (*PlayController) Pause added in v0.5.0

func (c *PlayController) Pause()

func (*PlayController) Resume added in v0.5.0

func (c *PlayController) Resume()

func (*PlayController) Start added in v0.5.0

func (c *PlayController) Start(environment data.Lighting, controller data.Input, board *level.Board)

func (*PlayController) Stop added in v0.5.0

func (c *PlayController) Stop()

func (*PlayController) ToggleCamera added in v0.5.0

func (c *PlayController) ToggleCamera()

func (*PlayController) Velocity added in v0.5.0

func (c *PlayController) Velocity() float64

Jump to

Keyboard shortcuts

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