game

package
v0.0.0-...-b7bdad3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

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

Game manages the overall state of the game.

func New

func New(screenWidth, screenHeight int) *Game

New creates, initializes, and returns a new Game.

func (*Game) Draw

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

Draw the game to the given image. The size of the image shouud be the same as the size given to New.

func (*Game) Update

func (g *Game) Update()

Update the Game by simulating the state by one frame.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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