game

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console interface {
	Update()
	Render()
	GetFrame() []byte
	GetRenderPipeline() []*texture.Texture
}

type Game

type Game interface {
	Run()
}

type GamePad

type GamePad interface {
	IsUpPressed() bool
	IsUpJustPressed() bool
	IsDownPressed() bool
	IsDownJustPressed() bool
	IsLeftPressed() bool
	IsLeftJustPressed() bool
	IsRightPressed() bool
	IsRightJustPressed() bool
	IsPrimaryPressed() bool
	IsSecondaryPressed() bool
	IsPrimaryJustPressed() bool
	IsSecondaryJustPressed() bool
}

type Mouse

type Mouse interface {
	CursorPosition() (int, int)
	CursorPositionFloat() (float64, float64)
	IsLeftClickPressed() bool
	IsRightClickPressed() bool
	IsLeftClickJustPressed() bool
	IsRightClickJustPressed() bool
}

Jump to

Keyboard shortcuts

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