Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultLocale() string
- func LoadBytes(p string) []byte
- func LoadLocale(forceLanguage *language.Tag) error
- func LoadOGG(context *audio.Context, p string) *audio.Player
- func LoadWAV(context *audio.Context, p string) *audio.Player
- func NewBoard() *board
- func NewLobby() *lobby
- func NewTutorialWidget() *tutorialWidget
- func ReplayDir() string
- type BoardWidget
- type ClickableText
- type Client
- type DieButton
- type Game
- type Label
- type SoundEffect
- type Sprite
- type Sprites
Constants ¶
View Source
const ( MaxDebug = 2 DefaultServerAddress = "wss://ws.bgammon.org" )
View Source
const ( AppName = "boxcars" ShowServerSettings = false )
Variables ¶
View Source
var (
SoundDie1, SoundDie2, SoundDie3 []byte
SoundDice1, SoundDice2, SoundDice3, SoundDice4 []byte
SoundMove1, SoundMove2, SoundMove3 []byte
SoundJoinLeave []byte
SoundSay []byte
)
View Source
var AutoEnableTouchInput bool
View Source
var (
Debug int8
)
Functions ¶
func DefaultLocale ¶ added in v1.1.1
func DefaultLocale() string
func LoadLocale ¶ added in v1.1.1
func NewTutorialWidget ¶ added in v1.2.1
func NewTutorialWidget() *tutorialWidget
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 ClickableText ¶ added in v1.1.2
func (*ClickableText) HandleMouse ¶ added in v1.1.2
type Client ¶
type DieButton ¶ added in v1.1.5
func NewDieButton ¶ added in v1.1.5
type Game ¶
type Game struct { ServerAddress string Email string Username string Password string TV bool Client *Client Board *board LoadReplay []byte *sync.Mutex // contains filtered or unexported fields }
func (*Game) ConnectLocal ¶ added in v1.1.6
func (*Game) HandleReplay ¶ added in v1.2.0
type SoundEffect ¶ added in v1.0.5
type SoundEffect int
Source Files
¶
Click to show internal directories.
Click to hide internal directories.