Documentation
¶
Index ¶
- Constants
- Variables
- func LoadBytes(p string) []byte
- func LoadOGG(context *audio.Context, p string) *audio.Player
- func LoadWAV(context *audio.Context, p string) *audio.Player
- func NewBoard() *board
- func NewLobby() *lobby
- type BoardWidget
- type Client
- type Game
- type Label
- type SoundEffect
- type Sprite
- type Sprites
Constants ¶
View Source
const ( DefaultServerAddress = "tcp://bgammon.org:1337" OptimizeDraw = true OptimizeSetRect = true AutoEnableTouchInput = false ShowServerSettings = false APPNAME = "boxcars" )
View Source
const MaxDebug = 1
Variables ¶
View Source
var (
SoundDie1, SoundDie2, SoundDie3 []byte
SoundDice1, SoundDice2, SoundDice3, SoundDice4 []byte
SoundMove1, SoundMove2, SoundMove3 []byte
SoundJoinLeave []byte
SoundSay []byte
)
View Source
var (
Debug int
)
Functions ¶
Types ¶
type BoardWidget ¶ added in v1.1.0
func NewBoardWidget ¶ added in v1.1.0
func NewBoardWidget() *BoardWidget
func (*BoardWidget) HandleMouse ¶ added in v1.1.0
type Client ¶
type Game ¶
type Game struct { ServerAddress string Username string Password string Watch bool TV bool Client *Client Board *board TouchInput bool // contains filtered or unexported fields }
func (*Game) EnableTouchInput ¶ added in v1.0.8
func (g *Game) EnableTouchInput()
type SoundEffect ¶ added in v1.0.5
type SoundEffect int
Click to show internal directories.
Click to hide internal directories.