game

package
v0.0.0-...-0996e1c Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

game is some stuff to make ebiten happy

(e.g. the Draw and  Update functions)

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
	// contains filtered or unexported fields
}

func New

func New(screenWidth int, screenHeight int) *Game

func (*Game) Draw

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

func (*Game) Layout

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

func (*Game) Run

func (g *Game) Run()

func (*Game) Update

func (g *Game) Update() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳