stat

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 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 Metric

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

Metric represents the game metric.

func New

func New(font *font.Font, screenWidth int) (*Metric, error)

New creates a new metric.

func (*Metric) Draw

func (m *Metric) Draw(screen *ebiten.Image, bounces int, angle float64, lvl level.Level)

Draw draws the metric on the screen. bounces is the number of bounces of the ball. angle is the angle of the ball. lvl is the current level.

func (*Metric) DrawNetworkInfo

func (m *Metric) DrawNetworkInfo(screen *ebiten.Image, pingCurrentPlayer, pingOpponent int)

DrawNetworkInfo draws the network information on the screen.

Jump to

Keyboard shortcuts

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