bump

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

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

Go to latest
Published: May 22, 2013 License: MIT Imports: 6 Imported by: 0

README

Bump is a simple multiplayer web-based physics game.  It consists of two teams
of players within a circular arena, with a special "safe" circle in the center.

A new player is assigned to the team with fewer players and is placed near the
center of the arena.  Moving the cursor within the arena applies thrust in the
direction of the cursor relative to the arena center and proportional to the
distance from the center.

Teams score points by bouncing opponents into the arena perimeter, tapping them
directly, then bouncing them into the perimeter again.

Players that have hit the wall, and possibly an opponent after that, may tap
the center safe circle to reset to normal status.

Once one team reaches 100 points, the scores are reset to 0 and a new game
begins.

Bump depends on the C Chipmunk Physics library, and has been tested with
version 6.1.4 available at:

  http://chipmunk-physics.net/release/Chipmunk-6.x/Chipmunk-6.1.4.tgz

If Chipmunk is installed in a nonstandard location, you need to set environment
variables to tell Go where to find it:

  CGO_CFLAGS=-I/path/to/chipmunk/includes
  CGO_LDFLAGS=-L/path/to/chipmunk/library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bump

type Bump struct {
	*gordian.Gordian
	// contains filtered or unexported fields
}

func NewBump

func NewBump() *Bump

func (*Bump) Run

func (b *Bump) Run()

type Player

type Player struct {
	Pos   chipmunk.Vect
	Team  int
	State int
}

Directories

Path Synopsis
server

Jump to

Keyboard shortcuts

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