tggame

package
v0.0.0-...-db1f3ee Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package tggame provides main game data

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 represents a tic-tac-go (GIU) game

func Create

func Create(w, h int) *Game

Create creates a new game

func (*Game) Draw

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

Draw renders stuff

func (*Game) Layout

func (g *Game) Layout(outsideW, outsideH int) (w, h int)

Layout returns scene size

func (*Game) Update

func (g *Game) Update() error

Update updates scene

Directories

Path Synopsis
Package tgboard wraps ttgboard.Board (provides ebiten features)
Package tgboard wraps ttgboard.Board (provides ebiten features)

Jump to

Keyboard shortcuts

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