gol

package module
v0.0.0-...-bd4b94a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2017 License: MIT Imports: 7 Imported by: 0

README

Gol is a simple multiplayer web-based soccer game.

New players are assigned to a random team if the count is even, or to the team
with fewer players otherwise.  Each team tries to bounce the ball into the
opponent's goal.  When a team scores a goal, the ball is returned to the center
and the players are placed randomly on their respective sides.  The scoring
team may not enter the center circle until the other team kicks off.  Once one
team reaches 10 points, the scores are reset to 0 and a new game begins.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ball

type Ball struct {
	Pos cp.Vector
}

type Gol

type Gol struct {
	sync.Mutex
	*gordian.Gordian
	// contains filtered or unexported fields
}

func New

func New() *Gol

func (*Gol) Run

func (g *Gol) Run()

type Player

type Player struct {
	Pos  cp.Vector
	Team int
}

Directories

Path Synopsis
cmd
gol

Jump to

Keyboard shortcuts

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