Documentation ¶
Index ¶
- Variables
- type Asteroid
- func (a *Asteroid) CheckCollision(ship *Ship) bool
- func (a *Asteroid) CornerBottomLeft() (float64, float64)
- func (a *Asteroid) CornerBottomRight() (float64, float64)
- func (a *Asteroid) CornerTopLeft() (float64, float64)
- func (a *Asteroid) CornerTopRight() (float64, float64)
- func (a *Asteroid) Draw(screen *ebiten.Image)
- func (a *Asteroid) Height() int
- func (a *Asteroid) Move(n float64)
- func (a *Asteroid) Width() int
- type Grid
- type Ship
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ImgAsteroid *ebiten.Image
)
Functions ¶
This section is empty.
Types ¶
type Asteroid ¶
type Asteroid struct {
// contains filtered or unexported fields
}
func (*Asteroid) CheckCollision ¶
func (*Asteroid) CornerBottomLeft ¶
func (*Asteroid) CornerBottomRight ¶
func (*Asteroid) CornerTopLeft ¶
func (*Asteroid) CornerTopRight ¶
type Grid ¶
type Grid struct {
// contains filtered or unexported fields
}
func (*Grid) DrawGridAsteroid ¶
func (g *Grid) DrawGridAsteroid(screen *ebiten.Image)
func (*Grid) DrawGridShip ¶
func (g *Grid) DrawGridShip(screen *ebiten.Image)
func (*Grid) GetCellAsteroid ¶
func (*Grid) GetCellShip ¶
func (*Grid) UpdateGridAsteroid ¶
func (*Grid) UpdateGridShip ¶
type Ship ¶
type Ship struct {
// contains filtered or unexported fields
}
func (*Ship) CornerTopLeft ¶
func (*Ship) CornerTopRight ¶
Click to show internal directories.
Click to hide internal directories.