game

package
v0.0.0-...-67cb241 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WindowMaximized
)

Variables

This section is empty.

Functions

func NewBoard

func NewBoard() *board

func NewLobby

func NewLobby() *lobby

func NewMessageHandler

func NewMessageHandler(t *textBuffer) *messageHandler

Types

type Game

type Game struct {
	ServerAddress string
	Username      string
	Password      string

	Watch bool
	TV    bool

	Client *fibs.Client

	Board *board

	Debug int
	// contains filtered or unexported fields
}

func NewGame

func NewGame() *Game

func (*Game) Connect

func (g *Game) Connect()

func (*Game) Draw

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

func (*Game) Exit

func (g *Game) Exit()

func (*Game) Layout

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

func (*Game) Update

func (g *Game) Update() error

type Sprite

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

type Sprites

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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