package
Version:
v0.0.0-...-01660b7
Opens a new window with list of versions in this module.
Published: Jul 24, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func DrawNumber(bg *ebiten.Image, x, y, width float64, n int)
Return true if a speger and explosion touch
type Explosion struct {
}
Our main object-popping entity
Create a new explosion in a specific location. It will have a
slightly randomised maximum radius.
Draw an explosion on the screen
Basic game object, will essentially render as just a circle
Create a new sphere, in a random place, with random colours and a
random direction of movement.
func (s *Sphere) Draw(t *ebiten.Image)
Render a sphere onto the game display
Turn a sphere into an explosion.
Advance a sphere one step, bouncing against the borders if necessary.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.