Documentation
¶
Index ¶
Constants ¶
View Source
const ( ColumnsCount = logic.ScreenWidth / logic.UnitSize WaveIncreaseFrequencyHeightInterval = 100. )
View Source
const ( DefaultMoveSpeed = 5 BaseJumpForce = 2 PlayerMaxHP = 10 )
View Source
const ( WaveInitialGrowingRate = 1.0 WaveMaxGrowingRate = 2.0 // TODO: (?) WaveBaseHeight = logic.ScreenHeight / 5 WaveDamageTick = logic.TPS / 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
ChestPickedUp bool
BonusList *bonus.List
Stats *Stats
Wave *Wave
Platforms *platform.List
Entities []entity.Entity
Player *Player
// contains filtered or unexported fields
}
func (*Core) GetBestHeight ¶
func (*Core) Initialize ¶
func (c *Core) Initialize()
func (*Core) IsGameOver ¶
func (*Core) TriggerChestPlatformWave ¶
func (c *Core) TriggerChestPlatformWave()
type Player ¶
type Stats ¶
type Stats struct {
AirControl bool
SpawnHearts bool
PlatformCellCount int
EventPlatformsCount int
JumpForce float64
WaveHealMod uint64
EnemyMoveSpeed float64
MaxEnemyDistance byte
CheckpointMod uint64
}
func (*Stats) ApplyBonus ¶
type Wave ¶
type Wave struct {
// contains filtered or unexported fields
}
func (*Wave) GetMinMaxLevels ¶
Click to show internal directories.
Click to hide internal directories.