Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScreenWidth = 672 ScreenHeight = 400 )
View Source
const ( DT = 0.1 WINDOWSIZE = 256 WINDOWSCALE = 3 TILESIZE = 16 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameScene ¶
func NewGameScene ¶
type GameState ¶
type GameState struct { SceneManager *SceneManager Input *Input }
type GamepadScene ¶
type GamepadScene struct {
// contains filtered or unexported fields
}
func (*GamepadScene) Draw ¶
func (s *GamepadScene) Draw(screen *ebiten.Image)
func (*GamepadScene) Update ¶
func (s *GamepadScene) Update(state *GameState) error
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
Input manages the input state including gamepads and keyboards.
func (*Input) GamepadIDButtonPressed ¶
func (i *Input) GamepadIDButtonPressed() ebiten.GamepadID
GamepadIDButtonPressed returns a gamepad ID where at least one button is pressed. If no button is pressed, GamepadIDButtonPressed returns -1.
func (*Input) IsRotateLeftJustPressed ¶
func (*Input) IsRotateRightJustPressed ¶
func (*Input) StateForDown ¶
func (*Input) StateForLeft ¶
func (*Input) StateForRight ¶
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(input *Input) error
type TitleScene ¶
type TitleScene struct {
// contains filtered or unexported fields
}
func (*TitleScene) Draw ¶
func (s *TitleScene) Draw(r *ebiten.Image)
func (*TitleScene) Update ¶
func (s *TitleScene) Update(state *GameState) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.