Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomColor ¶
func RandomPlusOrMinusOne ¶
func RandomPlusOrMinusOne() int
Types ¶
type Ball ¶
type Paddle ¶
type Paddle struct {
X float32 `json:"x"`
Y float32 `json:"y"`
Speed float32 `json:"-"`
Width int `json:"width"`
Height int `json:"height"`
Color color.Color `json:"color"`
Score int `json:"score"`
Up input.Key `json:"-"`
Down input.Key `json:"-"`
IsAI bool `json:"isAI"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.