Versions in this module Expand all Collapse all v1 v1.0.0 Dec 15, 2021 Changes in this version + var BulletComponentID = engine.Engine.NewComponentID() + var DestructibleComponentID = engine.Engine.NewComponentID() + var PositionComponentID = engine.Engine.NewComponentID() + var SpriteComponentID = engine.Engine.NewComponentID() + var VelocityComponentID = engine.Engine.NewComponentID() + var WeaponComponentID = engine.Engine.NewComponentID() + type BulletComponent struct + func Bullet(ctx *gohan.Context) *BulletComponent + func (p *BulletComponent) ComponentID() gohan.ComponentID + type DestructibleComponent struct + func Destructible(ctx *gohan.Context) *DestructibleComponent + func (p *DestructibleComponent) ComponentID() gohan.ComponentID + type PositionComponent struct + X float64 + Y float64 + func Position(ctx *gohan.Context) *PositionComponent + func (p *PositionComponent) ComponentID() gohan.ComponentID + type SpriteComponent struct + ColorScale float64 + DiagonalFlip bool + Frame int + FrameTime time.Duration + Frames []*ebiten.Image + HorizontalFlip bool + Image *ebiten.Image + LastFrame time.Time + NumFrames int + Overlay *ebiten.Image + OverlayX float64 + OverlayY float64 + OverrideColorScale bool + VerticalFlip bool + func Sprite(ctx *gohan.Context) *SpriteComponent + func (p *SpriteComponent) ComponentID() gohan.ComponentID + type VelocityComponent struct + X float64 + Y float64 + func Velocity(ctx *gohan.Context) *VelocityComponent + func (c *VelocityComponent) ComponentID() gohan.ComponentID + type WeaponComponent struct + BulletSpeed float64 + Damage int + Equipped bool + FireRate time.Duration + LastFire time.Time + func Weapon(ctx *gohan.Context) *WeaponComponent + func (p *WeaponComponent) ComponentID() gohan.ComponentID