Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScreenWidth = draw.ScreenWidth ScreenHeight = draw.ScreenHeight )
View Source
const ( ENDINGMAIN_STATE_STAFFROLL = iota ENDINGMAIN_STATE_RESULT )
View Source
const ( PLAYER_SPEED = 2.0 PLAYER_GRD_ACCRATIO = 0.04 PLAYER_AIR_ACCRATIO = 0.01 PLAYER_JUMP = -4.0 PLAYER_GRAVITY = 0.2 PLAYER_FALL_SPEEDMAX = 4.0 WAIT_TIMER_INTERVAL = 10 LIFE_RATIO = 400 MUTEKI_INTERVAL = 50 START_WAIT_INTERVAL = 50 SCROLLPANEL_SPEED = 2.0 LUNKER_JUMP_DAMAGE1 = 40.0 LUNKER_JUMP_DAMAGE2 = 96.0 )
View Source
const (
ENDING_SCROLL_SPEED = 3
)
View Source
const (
OPENING_SCROLL_SPEED = 3
)
Variables ¶
This section is empty.
Functions ¶
func IsItemForClear ¶
Types ¶
type EndingScene ¶
type EndingScene struct {
// contains filtered or unexported fields
}
func (*EndingScene) Draw ¶
func (e *EndingScene) Draw(screen *ebiten.Image, game *Game)
func (*EndingScene) Msg ¶
func (e *EndingScene) Msg() GameStateMsg
func (*EndingScene) Update ¶
func (e *EndingScene) Update(game *Game)
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
func (*Game) SetTransparent ¶
func (g *Game) SetTransparent()
type GameData ¶
type GameData struct {
// contains filtered or unexported fields
}
func NewGameData ¶
func (*GameData) GetItemCount ¶
func (*GameData) IsGameClear ¶
func (*GameData) IsGetOmega ¶
func (*GameData) IsHiddenSecret ¶
func (*GameData) TimeInFrame ¶
type GameScene ¶
type GameScene struct {
// contains filtered or unexported fields
}
func NewGameScene ¶
func (*GameScene) Msg ¶
func (g *GameScene) Msg() GameStateMsg
type GameStateMsg ¶
type GameStateMsg int
const ( GAMESTATE_MSG_NONE GameStateMsg = iota GAMESTATE_MSG_REQ_TITLE GAMESTATE_MSG_REQ_GAME GAMESTATE_MSG_REQ_OPENING GAMESTATE_MSG_REQ_ENDING GAMESTATE_MSG_REQ_SECRET_COMMAND GAMESTATE_MSG_REQ_SECRET_CLEAR )
type OpeningScene ¶
type OpeningScene struct {
// contains filtered or unexported fields
}
func (*OpeningScene) Draw ¶
func (o *OpeningScene) Draw(screen *ebiten.Image, game *Game)
func (*OpeningScene) Msg ¶
func (o *OpeningScene) Msg() GameStateMsg
func (*OpeningScene) Update ¶
func (o *OpeningScene) Update(game *Game)
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func (*Player) Update ¶
func (p *Player) Update() GameStateMsg
type PlayerState ¶
type PlayerState int
const ( PLAYERSTATE_START PlayerState = iota PLAYERSTATE_NORMAL PLAYERSTATE_ITEMGET PLAYERSTATE_MUTEKI PLAYERSTATE_DEAD )
type Scene ¶
type Scene interface { Update(g *Game) // TODO: Should return errors Draw(screen *ebiten.Image, g *Game) Msg() GameStateMsg }
type SecretScene ¶
type SecretScene struct {
// contains filtered or unexported fields
}
func NewSecretScene ¶
func NewSecretScene(secretType SecretType) *SecretScene
func (*SecretScene) Draw ¶
func (s *SecretScene) Draw(screen *ebiten.Image, game *Game)
func (*SecretScene) Msg ¶
func (s *SecretScene) Msg() GameStateMsg
func (*SecretScene) Update ¶
func (s *SecretScene) Update(game *Game)
type TitleScene ¶
type TitleScene struct {
// contains filtered or unexported fields
}
func (*TitleScene) Draw ¶
func (t *TitleScene) Draw(screen *ebiten.Image, game *Game)
func (*TitleScene) Msg ¶
func (t *TitleScene) Msg() GameStateMsg
func (*TitleScene) Update ¶
func (t *TitleScene) Update(game *Game)
type View ¶
type View struct {
// contains filtered or unexported fields
}
func (*View) GetPosition ¶
func (*View) ToScreenPosition ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.