Documentation
¶
Index ¶
- Constants
- func CalculateTreePositionX(floorPosX, randValue int, isRocketFloor bool) int
- func InitializeFloor(floor *Floor, x, y int)
- type Blackfader
- type BlinkingStar
- type Enemy
- type Floor
- type FloorType
- type Fuel
- func (f *Fuel) CollisionHitBox() *ebiten.Image
- func (f *Fuel) Draw(screen *ebiten.Image)
- func (f *Fuel) MoveTo(x, y int)
- func (f *Fuel) Position() (int, int)
- func (f *Fuel) SetFinalPosition(x, y int)
- func (f *Fuel) SetFinalPositionIntoPlatform(platformPosX, platformPosY, PlatformWidth int)
- func (f *Fuel) Update()
- type Lavadrop
- type Mainmenu
- type Platform
- type Player
- func (p *Player) CollisionHitBox() *ebiten.Image
- func (p *Player) Draw(screen *ebiten.Image, spriteCount int)
- func (p *Player) GetCenter() (int, int)
- func (p *Player) GetX() int
- func (p *Player) GetY() int
- func (p *Player) HandsPosition() (int, int)
- func (p *Player) LostLive()
- func (p *Player) MoveLeft()
- func (p *Player) MoveRight()
- func (p *Player) MoveTo(x, y int)
- func (p *Player) MoveUp()
- func (p *Player) Position() (int, int)
- func (p *Player) Restart(posX int)
- func (p *Player) RestartLives()
- func (p *Player) Update()
- type PlayerStatus
- type Rocket
- func (r *Rocket) CollisionHitBox() *ebiten.Image
- func (r *Rocket) Draw(screen *ebiten.Image)
- func (r *Rocket) GetX() int
- func (r *Rocket) GetY() int
- func (r *Rocket) Landing()
- func (r *Rocket) MoveTo(x, y int)
- func (r *Rocket) Position() (int, int)
- func (r *Rocket) ReduceScale()
- func (r *Rocket) RestartFuelItems()
- func (r *Rocket) SetFireAllways()
- func (r *Rocket) TakeOff()
- type Tree
Constants ¶
View Source
const ( StartRocketX = 750 StartRocketY = -31 RocketMaxSpeed = 5 RocketWidth = 64 RocketHeight = 128 )
View Source
const (
ChangeBlinkingStarsMaxTime = 50
)
View Source
const (
FallingFuelVelocity = 2
)
View Source
const (
TreeHeight = 128
)
Variables ¶
This section is empty.
Functions ¶
func CalculateTreePositionX ¶
func InitializeFloor ¶
Types ¶
type Blackfader ¶
type Blackfader struct {
// contains filtered or unexported fields
}
func NewBlackfader ¶
func NewBlackfader(gameStatus, appWidth, appHeight int) *Blackfader
func (*Blackfader) Activate ¶
func (b *Blackfader) Activate(gameStatus int)
func (*Blackfader) Draw ¶
func (b *Blackfader) Draw(screen *ebiten.Image)
func (*Blackfader) GameStatus ¶
func (b *Blackfader) GameStatus() int
func (*Blackfader) IsActive ¶
func (b *Blackfader) IsActive() bool
func (*Blackfader) IsMaxOpaque ¶
func (b *Blackfader) IsMaxOpaque() bool
func (*Blackfader) Update ¶
func (b *Blackfader) Update()
type BlinkingStar ¶
type BlinkingStar struct {
// contains filtered or unexported fields
}
func NewBlinkingStar ¶
func NewBlinkingStar(img *ebiten.Image) *BlinkingStar
func (*BlinkingStar) Draw ¶
func (b *BlinkingStar) Draw(screen *ebiten.Image, spriteCount int)
func (*BlinkingStar) MoveTo ¶
func (b *BlinkingStar) MoveTo(x, y int)
type Enemy ¶
type Enemy struct {
// contains filtered or unexported fields
}
func (*Enemy) CollisionHitBox ¶
func (e *Enemy) CollisionHitBox() *ebiten.Image
type Floor ¶
type Floor struct { FloorType FloorType Lavadrop *Lavadrop // contains filtered or unexported fields }
func (*Floor) CollisionHitBox ¶
func (f *Floor) CollisionHitBox() *ebiten.Image
func (*Floor) IsLavaFloor ¶
type Fuel ¶
type Fuel struct { Snaps bool // contains filtered or unexported fields }
func (*Fuel) CollisionHitBox ¶
func (f *Fuel) CollisionHitBox() *ebiten.Image
func (*Fuel) SetFinalPosition ¶
func (*Fuel) SetFinalPositionIntoPlatform ¶
type Lavadrop ¶
type Lavadrop struct {
// contains filtered or unexported fields
}
func NewLavadrop ¶
func NewLavadrop(lavaDropImg *ebiten.Image) *Lavadrop
func (*Lavadrop) CollisionHitBox ¶
func (l *Lavadrop) CollisionHitBox() *ebiten.Image
func (*Lavadrop) SetInitialPosition ¶
type Mainmenu ¶
type Mainmenu struct {
// contains filtered or unexported fields
}
func NewMainmenu ¶
func NewMainmenu(imgMainmenu *ebiten.Image) *Mainmenu
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func NewPlatform ¶
func NewPlatform(platformSprites []*ebiten.Image) *Platform
type Player ¶
type Player struct { Lives int PlayerStatus PlayerStatus HasFuel bool InmuneToDamageTime int // contains filtered or unexported fields }
func (*Player) CollisionHitBox ¶
func (p *Player) CollisionHitBox() *ebiten.Image
func (*Player) HandsPosition ¶
func (*Player) RestartLives ¶
func (p *Player) RestartLives()
type PlayerStatus ¶
type PlayerStatus int
const ( WalkingLeft PlayerStatus = iota WalkingRight WalkingRightWithFuel WalkingLeftWithFuel FlyingLeft FlyingRight Center )
type Rocket ¶
type Rocket struct { LandedY int LandingSpeed float32 FuelIndicatorItems int // contains filtered or unexported fields }
func (*Rocket) CollisionHitBox ¶
func (r *Rocket) CollisionHitBox() *ebiten.Image
func (*Rocket) ReduceScale ¶
func (r *Rocket) ReduceScale()
func (*Rocket) RestartFuelItems ¶
func (r *Rocket) RestartFuelItems()
func (*Rocket) SetFireAllways ¶
func (r *Rocket) SetFireAllways()
Click to show internal directories.
Click to hide internal directories.