Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
Player is the player character.
func NewPlayer ¶
func NewPlayer(img, anotherImg *ebiten.Image, area image.Rectangle, bGun, aGun *gun.Gun) (*Player, error)
NewPlayer returns a new Player. Please set the area of movement.
func (*Player) ChangeMode ¶
func (p *Player) ChangeMode()
ChangeMode changes the image and the gun of this character.
func (*Player) SetLocation ¶
SetLocation sets the location to draw this character.
Click to show internal directories.
Click to hide internal directories.