Documentation ¶
Index ¶
Constants ¶
View Source
const ( BlockWidth0 = 0.2 BlockWidth1 = 0.4 BlockHeight0 = 0.2 BlockHeight1 = 0.4 BlockPosY0 = 0. BlockPosY1 = 0.4 )
View Source
const ( RoadWidth = 1. RoadHeight = 1. RoadDepth = 4. InvulnTime = 20 BlockDefaultSpeed = 0.075 HeartChance = 0.05 // Let's keep it possible to farm them GoldenHeartChance = 0.25 BlockHarderChance = 1. / 2. BlockHarder2Chance = 1. / 4. )
View Source
const ( DefaultPlayerRadius = 0.0425 DefaultJumpDuration = 0.5 * logic.TPS )
View Source
const ( MaxPlayerSpeed = 0.02 MaxHeartContainers = 10 )
View Source
const ( DefaultSpeed = 2.0 MaxSpeed = 4.0 )
Variables ¶
This section is empty.
Functions ¶
func DebugLines ¶
func DebugLines() float32
func PerfectStep ¶
func PerfectStep() bool
func UpdateGlobalSettings ¶
func UpdateGlobalSettings()
Types ¶
type BlockSettings ¶
type Core ¶
type Core struct { Wave *Wave PlayerHP int Player *Player Blocks []*Block Settings *Settings // contains filtered or unexported fields }
func NewCore ¶
func NewCore(sfxManager assets.SFXManager) *Core
func (*Core) GetBlockSeeds ¶
func (*Core) GetScoreMultiplier ¶
func (*Core) IsWaveOver ¶
func (*Core) StartNextWave ¶
func (c *Core) StartNextWave()
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func (*Player) SetIntentJump ¶
func (*Player) SetIntentX ¶
type Settings ¶
type Settings struct {
// contains filtered or unexported fields
}
func (*Settings) ApplyAugments ¶
Click to show internal directories.
Click to hide internal directories.