eggtoss

package
v0.0.0-...-106450c Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATIC = "static"
	FULL   = "full-movenment"

	SLOW   = "slow"
	MEDIUM = "medium"
	FAST   = "fast"

	SLOW_SPEED   = 1
	MEDIUM_SPEED = 2.5
	FAST_SPEED   = 5
)
View Source
const (
	PADDING = 20

	WINDOW_WIDTH  = 600
	WINDOW_HEIGHT = 900

	IMAGE_WIDTH = 240

	LEFT  = "going-left"
	RIGHT = "going-right"

	DEFAULT_BASKET_POS_X = (600 - IMAGE_WIDTH) / 2
	DEFAULT_BASKET_POS_Y = 750
)
View Source
const (
	ENTRY   = "entry screen"
	EXIT    = "exit screen"
	PLAYING = "playing"
)

Variables

View Source
var Y_POS = [3]float64{100, DEFAULT_BASKET_POS_Y, 1500}

Functions

func PlayGame

func PlayGame()

Types

type Ball

type Ball struct {
	// contains filtered or unexported fields
}

func (*Ball) Draw

func (b *Ball) Draw(screen *ebiten.Image)

func (*Ball) Update

func (b *Ball) Update() error

type Basket

type Basket struct {
	// contains filtered or unexported fields
}

func (*Basket) Draw

func (b *Basket) Draw(screen *ebiten.Image)

func (*Basket) GoDown

func (b *Basket) GoDown()

-600,100,800

func (*Basket) Update

func (b *Basket) Update()

type Game

type Game struct {
	// contains filtered or unexported fields
}

func (*Game) Draw

func (g *Game) Draw(screen *ebiten.Image)

func (*Game) Layout

func (g *Game) Layout(w int, h int) (sW, sH int)

func (*Game) Update

func (g *Game) Update() error

type Portal

type Portal struct {
	// contains filtered or unexported fields
}

func (*Portal) Draw

func (p *Portal) Draw(g *Game, screen *ebiten.Image)

func (*Portal) Update

func (p *Portal) Update(screentype string) error

type Speed

type Speed struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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