utils

package
v0.0.0-...-20233a0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(configFile string, config *map[string]string)

GetConfig reads a config file and returns a new config map

func LogError

func LogError(err error)

LogError prints an error and exits

func MakeConfig

func MakeConfig() map[string]string

MakeConfig returns a mapped config from a config file

func PrintFPS

func PrintFPS(screen *ebiten.Image)

PrintFPS prints the current TPS and FPS values

func ReadDeadZone

func ReadDeadZone(config map[string]string) float64

ReadDeadZone reads a gamepad's dead zone parameter froma config file. Should be a number between 0 and 1.

func ReadGamepadID

func ReadGamepadID(config map[string]string) int

ReadGamepadID read a gamepad ID parameter from a config file. Should be an integer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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