Documentation ¶
Index ¶
- func InitImages()
- func InitSounds()
- func UpdateSound()
- type Game
- type Location
- type Object
- type Physics
- type Ship
- func (ship *Ship) CcwThrustersOff()
- func (ship *Ship) CcwThrustersOn()
- func (ship *Ship) CwThrustersOff()
- func (ship *Ship) CwThrustersOn()
- func (ship *Ship) Draw(screen *ebiten.Image, g *Game)
- func (ship *Ship) FwdThrustersOff()
- func (ship *Ship) FwdThrustersOn()
- func (ship *Ship) GetLocation() Location
- func (ship *Ship) GetPhysics() Physics
- func (ship *Ship) RevThrustersOff()
- func (ship *Ship) RevThrustersOn()
- func (ship *Ship) Update()
- type ViewPort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
Game struct for ebiten
type Location ¶
type Location struct {
// contains filtered or unexported fields
}
Location in the game
type Object ¶
type Object interface { Update() Draw(*ebiten.Image, *Game) GetLocation() Location GetPhysics() Physics }
Object in the game
type Physics ¶
type Physics struct {
// contains filtered or unexported fields
}
Physics in the game
type Ship ¶
Ship space ship
func (*Ship) CcwThrustersOff ¶
func (ship *Ship) CcwThrustersOff()
CcwThrustersOff counter clockwise thrusters off
func (*Ship) CcwThrustersOn ¶
func (ship *Ship) CcwThrustersOn()
CcwThrustersOn counter clockwise thrusters on
func (*Ship) CwThrustersOff ¶
func (ship *Ship) CwThrustersOff()
CwThrustersOff clockwise thruters off
func (*Ship) FwdThrustersOff ¶
func (ship *Ship) FwdThrustersOff()
FwdThrustersOff forward thrusters off
func (*Ship) FwdThrustersOn ¶
func (ship *Ship) FwdThrustersOn()
FwdThrustersOn forward thrusters on
func (*Ship) RevThrustersOff ¶
func (ship *Ship) RevThrustersOff()
RevThrustersOff reverse thrusters off
func (*Ship) RevThrustersOn ¶
func (ship *Ship) RevThrustersOn()
RevThrustersOn reverse thrusters on
type ViewPort ¶
type ViewPort struct { Location // contains filtered or unexported fields }
ViewPort a player sees through
func NewViewPort ¶
NewViewPort is initialized and returned
Click to show internal directories.
Click to hide internal directories.