Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Enemy ¶
type Enemy struct {
// contains filtered or unexported fields
}
func (*Enemy) FireProjectile ¶
func (e *Enemy) FireProjectile() *Projectile
func (*Enemy) OnScreenRect ¶
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
func (*Input) MoveShip ¶
func (i *Input) MoveShip() ShipDirection
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func (*Player) FireProjectile ¶
func (p *Player) FireProjectile() *Projectile
func (*Player) OnScreenRect ¶
type Projectile ¶
type Projectile struct {
// contains filtered or unexported fields
}
func NewProjectile ¶
func NewProjectile(x, y float64, bt projectileType) *Projectile
func (*Projectile) OnScreenRect ¶
func (p *Projectile) OnScreenRect() image.Rectangle
func (*Projectile) Update ¶
func (p *Projectile) Update() bool
type ShipDirection ¶
type ShipDirection int
const ( NoMovement ShipDirection = iota MoveShipLeft MoveShipRight )
Click to show internal directories.
Click to hide internal directories.