Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScreenWidth = 1280 ScreenHeight = 720 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameScene ¶
Game represents the main game state
func GameplayScene ¶
func GameplayScene() *GameScene
func (*GameScene) Draw ¶
func (g *GameScene) Draw(screen *ebiten.Image)
Draw draws the game screen by one frame
type GameState ¶
type GameState struct {
SceneManager *SceneManager
}
type SceneManager ¶
type SceneManager struct {
// contains filtered or unexported fields
}
func (*SceneManager) Draw ¶
func (s *SceneManager) Draw(r *ebiten.Image)
func (*SceneManager) GoTo ¶
func (s *SceneManager) GoTo(scene Scene)
func (*SceneManager) Update ¶
func (s *SceneManager) Update() error
type TitleScene ¶
type TitleScene struct{}
func (*TitleScene) Draw ¶
func (s *TitleScene) Draw(r *ebiten.Image)
func (*TitleScene) Update ¶
func (s *TitleScene) Update(state *GameState) error
Click to show internal directories.
Click to hide internal directories.