Documentation ¶
Index ¶
Constants ¶
View Source
const ( RenderableType ecs.ComponentType = iota PlayerType PlayerBulletType BaddieType BaddieGroupType )
View Source
const ( BaddieRemovedEventType ecs.EventType = iota CollisionEventType )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Baddie ¶
type Baddie struct{}
Baddie
func (*Baddie) ComponentType ¶
func (*Baddie) ComponentType() ecs.ComponentType
type BaddieCollisionEventHandler ¶
type BaddieCollisionEventHandler struct{}
func (BaddieCollisionEventHandler) DesiredEventType ¶
func (BaddieCollisionEventHandler) DesiredEventType() ecs.EventType
func (BaddieCollisionEventHandler) HandleEvent ¶
func (BaddieCollisionEventHandler) HandleEvent(e ecs.Event, world *ecs.World)
type BaddieRemovedEvent ¶
BaddieRemovedEvent is fired whenever a baddie is removed for any reason.
func (*BaddieRemovedEvent) EventType ¶
func (*BaddieRemovedEvent) EventType() ecs.EventType
type CollisionEvent ¶
CollisionEvent is fired when two renderables collide.
func (*CollisionEvent) EventType ¶
func (*CollisionEvent) EventType() ecs.EventType
type EntityRemovedEventHandler ¶
type EntityRemovedEventHandler struct{}
func (EntityRemovedEventHandler) DesiredEventType ¶
func (EntityRemovedEventHandler) DesiredEventType() ecs.EventType
func (EntityRemovedEventHandler) HandleEvent ¶
func (EntityRemovedEventHandler) HandleEvent(e ecs.Event, world *ecs.World)
type Player ¶
type Player struct{}
Player
func (*Player) ComponentType ¶
func (*Player) ComponentType() ecs.ComponentType
type PlayerBullet ¶
type PlayerBullet struct{}
PlayerBullet
func NewPlayerBullet ¶
func NewPlayerBullet() *PlayerBullet
func (*PlayerBullet) ComponentType ¶
func (*PlayerBullet) ComponentType() ecs.ComponentType
type Renderable ¶
Renderable
func NewRenderable ¶
func NewRenderable(renderImage *ebiten.Image, x int, y int) *Renderable
func (*Renderable) ComponentType ¶
func (*Renderable) ComponentType() ecs.ComponentType
func (*Renderable) TranslateHitboxToScreen ¶
func (renderable *Renderable) TranslateHitboxToScreen() image.Rectangle
TranslateHitboxToScreen translates a renderable's defined hitbox to real screen coordinates based on the current renderable point Location.
Click to show internal directories.
Click to hide internal directories.