Documentation ¶
Index ¶
Constants ¶
View Source
const ( InitPaddleWidth = 20 InitPaddleHeight = 100 InitPaddleShift = 50 )
View Source
const (
InitBallRadius = 10.0
)
Variables ¶
View Source
var ( ArcadeFont font.Face SmallArcadeFont font.Face )
View Source
var ( BgColor = color.Black ObjColor = color.RGBA{120, 226, 160, 255} )
Functions ¶
Types ¶
type Ball ¶
type Ball struct { Position Radius float32 XVelocity float32 YVelocity float32 Color color.Color Img *ebiten.Image }
Ball is a pong ball
Click to show internal directories.
Click to hide internal directories.