Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ButtonList = []ButtonEntry{ { X: constants.HalfWindowWidth, Y: constants.HalfWindowHeight + 100, W: constants.ButtonWidth, H: constants.ButtonHeight, Text: "Start Game", Name: "start", Color: constants.ButtonColor, HoverColor: constants.ButtonHoverColor, }, { X: constants.HalfWindowWidth, Y: constants.HalfWindowHeight + 150, W: constants.ButtonWidth, H: constants.ButtonHeight, Text: "Exit Game", Name: "exit", Color: constants.ButtonColor, HoverColor: constants.ButtonHoverColor, }, }
Functions ¶
This section is empty.
Types ¶
type ButtonEntry ¶
type GameSystem ¶
type GameSystem struct {
Entities []*entities.RenderableEntity
TiledMap *entities.TiledMap
}
func (*GameSystem) Add ¶
func (gs *GameSystem) Add(basic *ecs.BasicEntity, rect *components.Renderable, transform *components.Transform, isPlayer bool)
func (*GameSystem) New ¶
func (gs *GameSystem) New(world *ecs.World)
func (*GameSystem) Remove ¶
func (gs *GameSystem) Remove(basic ecs.BasicEntity)
func (*GameSystem) Update ¶
func (gs *GameSystem) Update(dt float32)
type MainMenuSystem ¶
func (*MainMenuSystem) Add ¶
func (mm *MainMenuSystem) Add(basic *ecs.BasicEntity, transform *components.Transform, renderable *components.Renderable, button *components.Button)
func (*MainMenuSystem) New ¶
func (mm *MainMenuSystem) New(world *ecs.World)
func (*MainMenuSystem) Remove ¶
func (mm *MainMenuSystem) Remove(basic ecs.BasicEntity)
func (*MainMenuSystem) Update ¶
func (mm *MainMenuSystem) Update(dt float32)
Click to show internal directories.
Click to hide internal directories.