Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Button ¶
type Button struct { OnClick func() Color color.RGBA Sprite string DrawHan FXDHandler // contains filtered or unexported fields }
type FXDHandler ¶
type FXDHandler interface { furex.DrawHandler }
type FXHandlerImpl ¶
type FXHandlerImpl struct{}
func (FXHandlerImpl) HandleDraw ¶
func (f FXHandlerImpl) HandleDraw(screen *ebiten.Image, frame image.Rectangle)
type Game ¶
type Game struct { // must implement ebiten.Game interface ebiten.Game UI GameUI // contains filtered or unexported fields }
type GameHandler ¶
type GameHandler struct {
// contains filtered or unexported fields
}
GameHandler handles the game state
func NewGameHandler ¶
func NewGameHandler(log *zerolog.Logger, player *basegame.Character) *GameHandler
func (*GameHandler) DrawMenu ¶
func (h *GameHandler) DrawMenu(screen *ebiten.Image)
func (*GameHandler) NewGame ¶
func (h *GameHandler) NewGame(c *basegame.Character)
type GameUI ¶
type GameUI struct { NewGBtn *furex.View LoadSaveBtn *furex.View DonateBtn *furex.View IssuesBtn *furex.View QuitBtn *furex.View NewGameImg *furex.View }
func (*GameUI) NewGameBtn ¶
Click to show internal directories.
Click to hide internal directories.