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
- func (g *Game) Connect()
- func (g *Game) ConnectLocal(conn net.Conn)
- func (g *Game) Draw(screen *ebiten.Image)
- func (g *Game) EnableTouchInput()
- func (g *Game) Exit()
- func (g *Game) HandleReplay(replay []byte)
- func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int)
- func (g *Game) Update() error
- type Label
- type SoundEffect
- type Sprite
- type Sprites
Constants ¶
View Source
const ( OptimizeDraw = true OptimizeSetRect = true AutoEnableTouchInput = false ShowServerSettings = false APPNAME = "boxcars" )
View Source
const DefaultServerAddress = "wss://ws.bgammon.org"
View Source
const MaxDebug = 2
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 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 TouchInput bool Instant bool LoadReplay []byte *sync.Mutex // contains filtered or unexported fields }
func (*Game) ConnectLocal ¶ added in v1.1.6
func (*Game) EnableTouchInput ¶ added in v1.0.8
func (g *Game) EnableTouchInput()
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.