level

package
v0.0.0-...-1072354 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level struct {
	BgImage1, BgImage2, BgImage3, LevelImage, LevelBackgroundImage, LevelForegroundImage *ebiten.Image
	CoinDecay, CoinHolePenalty, MoveSpeed, JumpHeight, LevelNumber                       int
	Gravity                                                                              float64
	Coin                                                                                 coin.Coin
	Spawns                                                                               []*spawn.Spawn
}

func New

func New(levelNumber int) Level

func (Level) NextSpawn

func (l Level) NextSpawn(x, y int) (int, int)

func (Level) PreviousSpawn

func (l Level) PreviousSpawn(x, y int) (int, int)

func (Level) StartPosition

func (l Level) StartPosition() (int, int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL