Documentation ¶
Index ¶
- func GetPic(s string) *ebiten.Image
- func InitPic(s string, img image.Image)
- func InitPicReader(s string, reader io.Reader) error
- type BaseSelf
- type Bullet
- func (b *Bullet) CanClean() bool
- func (b *Bullet) CheckCollide(selfPosition utils.Point, selfRadius float64) bool
- func (b *Bullet) CheckGraze(selfPosition utils.Point, selfRadius float64) bool
- func (b *Bullet) Draw(screen *ebiten.Image)
- func (b *Bullet) GetPosition() utils.Point
- func (b *Bullet) IsAlive() bool
- func (b *Bullet) SetPosition(point utils.Point)
- func (b *Bullet) Update() error
- type Enemy
- type Generator
- type PicCache
- type Self
- type SelfBullet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseSelf ¶
type BaseSelf struct { }
func (*BaseSelf) GetPosition ¶
func (*BaseSelf) SetPosition ¶
type Bullet ¶
type Bullet struct {
// contains filtered or unexported fields
}
func (*Bullet) CheckCollide ¶
func (*Bullet) CheckGraze ¶
func (*Bullet) GetPosition ¶
func (*Bullet) SetPosition ¶
type Enemy ¶
type Enemy struct { HP int // contains filtered or unexported fields }
func NewEnemies ¶
func (*Enemy) CheckCollide ¶
func (*Enemy) GetPosition ¶
func (*Enemy) SetPosition ¶
type Self ¶
type Self interface { Radius() float64 Pic() *ebiten.Image Opt() *ebiten.DrawImageOptions PicImg() *ebiten.Image OptImg() *ebiten.DrawImageOptions IsInvincible() bool SetInvincibleFrame(frame int) ResetPosition() SetPosition(point utils.Point) GetPosition() utils.Point NextTick() (selfBullets []SelfBullet) GetLife() int8 GetBomb() int8 DecreaseLife() bool DecreaseBomb() bool }
type SelfBullet ¶
Click to show internal directories.
Click to hide internal directories.