enum

package
v0.0.0-...-1f00af5 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package enum defines all the little enum types used throughout Doodle.

Index

Constants

View Source
const (
	LevelExt     = ".level"
	DoodadExt    = ".doodad"
	LevelPackExt = ".levelpack"
)

File extensions

View Source
const (
	ScreenWidthXSmall = 400
	ScreenWidthSmall  = 600
	ScreenWidthMedium = 800
	ScreenWidthLarge  = 1000
)

Responsive breakpoints for mobile friendly UIs.

Variables

This section is empty.

Functions

This section is empty.

Types

type Difficulty

type Difficulty int
const (
	// The zero value is the default (Normal) so is b/w compatible with
	// level files pre-difficulty setting.
	Peaceful Difficulty = iota - 1
	Normal
	Hard
)

func (Difficulty) String

func (d Difficulty) String() string

type DrawingType

type DrawingType int

DrawingType tells the EditorScene whether the currently open drawing is a Level or a Doodad.

const (
	LevelDrawing DrawingType = iota
	DoodadDrawing
)

EditorType values.

Jump to

Keyboard shortcuts

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