Documentation ¶
Index ¶
Constants ¶
View Source
const PaddleHeight float64 = 150.0
View Source
const PaddleMoveSpeed float64 = 400.0 // pixels per second
View Source
const PaddleWidth float64 = 35.0
Variables ¶
This section is empty.
Functions ¶
func HandlePaddleKey ¶
func HandlePaddleKey(paddle *Paddle, key PaddleKey, keyState PaddleKeyState)
func RenderPaddle ¶
func UpdatePaddle ¶
Types ¶
type PaddleKeyState ¶
type PaddleKeyState uint8
const ( PaddleKeyReleased PaddleKeyState = iota PaddleKeyPressed )
func GetKeyState ¶
func GetKeyState(eventType uint32) PaddleKeyState
Click to show internal directories.
Click to hide internal directories.