consts

package
v0.0.0-...-bf68151 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PaletteWidth               = 10
	TileSize                   = 16
	MiniTileSize               = 8
	TileXNum                   = 10
	TileYNum                   = 22
	GuaranteedVisibleTileYNum  = 14
	MapWidth                   = TileXNum * TileSize
	MapHeight                  = TileYNum * TileSize
	GuaranteedVisibleMapHeight = GuaranteedVisibleTileYNum * TileSize
	MapScaledWidth             = MapWidth * TileScale
	MapScaledHeight            = MapHeight * TileScale
	TileScale                  = 3
	TextScale                  = 2
	BigTextScale               = 3
	MaxFullscreenImageSize     = 304
	HeaderHeight               = 16 * TileScale
)

Variables

This section is empty.

Functions

func CeilDiv

func CeilDiv(x, y int) int

func HasExtraBottomGrid

func HasExtraBottomGrid(screenHeight int) bool

HasExtraBottomGrid reports whether the screen has an extra bottom grid due to the screen is too large or not.

HasExtraBottomGrid return true on devices like iPhone X.

Types

type InterpreterID

type InterpreterID int

InterpreterID represents a unique identifier of interpreters

type SponsorTierType

type SponsorTierType string
const (
	SponsorTierType_1_Donation SponsorTierType = "tier1_donation"
	SponsorTierType_2_Donation SponsorTierType = "tier2_donation"
	SponsorTierType_3_Donation SponsorTierType = "tier3_donation"
	SponsorTierType_4_Donation SponsorTierType = "tier4_donation"
)

func (SponsorTierType) Color

func (t SponsorTierType) Color() color.Color

func (SponsorTierType) IsValid

func (t SponsorTierType) IsValid() bool

func (SponsorTierType) Level

func (t SponsorTierType) Level() int

Jump to

Keyboard shortcuts

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