Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
Player is the player of the game.
func New ¶
func New(name string, side geometry.Side, screenWidth, screenHeight, fieldBorderWidth float64) *Player
New creates a new player.
func (*Player) BouncerHeight ¶
BouncerHeight returns the height of the player bouncer.
func (*Player) BouncerWidth ¶
BouncerWidth returns the width of the player bouncer.
func (*Player) SetPosition ¶
SetPosition sets the Y position of the player.
Click to show internal directories.
Click to hide internal directories.