Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BallImage *ebiten.Image // Screen Resolution ScreenWidth = 1600 ScreenHeight = 900 // Starting values for balls X0 = float64(ScreenWidth) / 2 Y0 = float64(ScreenHeight) / 10 MinV0 float64 = -50 MaxV0 float64 = 50 )
Simulation variables
Functions ¶
func DrawScenery ¶
DrawScenery is a helper function to draw background and walls
func OutOfBound ¶
OutOfBound is a helper function to set the right boundary The values are simply set to fit the scenery
func StartValues ¶
StartValues set starting position and velocity for a slice of balls Fixed starting position and velocity is random
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.