app

package
v0.0.0-...-18f9373 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DebugFace   font.Face
	TimeFace    font.Face
	ContextFace font.Face
)
View Source
var (
	TimeFontImg     = ebiten.NewImage(250, 60)
	GameNameFontImg = ebiten.NewImage(250, 60)
	BestRFontImg    = ebiten.NewImage(250, 60)
	IconImg         = ebiten.NewImage(250, 60)
	FillOnImg       = ebiten.NewImage(250, 60)
	FillUnderImg    = ebiten.NewImage(250, 60)
)

UI布局

-------------------------------- | Time | | | | GameName icon | | Best Record : xxx | -----------------------------------

View Source
var ResourceFS fs.FS

Functions

func CreateDrawOp

func CreateDrawOp() (opt ebiten.DrawImageOptions)

func InitSceneScreen

func InitSceneScreen(image *ebiten.Image) (int, int)

func IsInPos

func IsInPos(x, y, x1, y1, x2, y2 float64) bool

func LogP

func LogP(a ...any)

func UiLayout

func UiLayout(screen *ebiten.Image)

Types

type App

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

func NewApp

func NewApp(arg []string) *App

func (*App) Draw

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

func (*App) Layout

func (g *App) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)

func (*App) Update

func (g *App) Update() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳