2024-02-06 15:26:20 +01:00
|
|
|
package config
|
|
|
|
|
|
2024-03-18 19:34:57 +01:00
|
|
|
import (
|
2024-04-07 12:05:37 +02:00
|
|
|
"image/color"
|
2024-03-18 19:34:57 +01:00
|
|
|
"time"
|
2024-04-16 19:10:32 +02:00
|
|
|
|
|
|
|
|
input "github.com/quasilyte/ebitengine-input"
|
2024-03-18 19:34:57 +01:00
|
|
|
)
|
2024-02-12 17:27:52 +01:00
|
|
|
|
2024-02-06 15:26:20 +01:00
|
|
|
const (
|
|
|
|
|
Stop = iota
|
|
|
|
|
East
|
|
|
|
|
West
|
|
|
|
|
South
|
|
|
|
|
North
|
2024-02-20 18:47:32 +01:00
|
|
|
All
|
2024-02-06 15:26:20 +01:00
|
|
|
)
|
2024-02-11 14:24:30 +01:00
|
|
|
|
2024-03-31 20:16:15 +02:00
|
|
|
const (
|
2024-04-02 20:05:23 +02:00
|
|
|
PLAYERSPEED int = 5
|
|
|
|
|
ANIMATION_STARTWAIT time.Duration = 30 * time.Millisecond // how long to wait to start collectible animation
|
|
|
|
|
ANIMATION_LOOPWAIT time.Duration = 40 * time.Millisecond // how much time to wait between the sprites
|
2024-04-08 18:51:25 +02:00
|
|
|
LEVEL_END_WAIT time.Duration = 100 * time.Millisecond
|
|
|
|
|
version string = "1.4.0"
|
2024-03-31 20:16:15 +02:00
|
|
|
|
|
|
|
|
MenuRectX int = 600
|
|
|
|
|
MenuRectY int = 0
|
|
|
|
|
MenuRectCellsize int = 32
|
2024-03-15 20:08:23 +01:00
|
|
|
|
2024-03-31 20:16:15 +02:00
|
|
|
LDTK_Entity_Ref string = "Entity_ref"
|
|
|
|
|
LDTK_Toggle_Tile string = "Toggle"
|
|
|
|
|
)
|
2024-03-18 19:34:57 +01:00
|
|
|
|
2024-03-15 20:08:23 +01:00
|
|
|
var VERSION string // maintained by -x
|
2024-04-07 12:05:37 +02:00
|
|
|
|
|
|
|
|
var FontColorFG = color.RGBA{0, 255, 128, 255} // blue
|
|
|
|
|
//var FontColorFG = color.RGBA{117, 167, 67, 255} // green
|
2024-04-16 19:10:32 +02:00
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
MoveLeft input.Action = iota
|
|
|
|
|
MoveRight
|
|
|
|
|
MoveUp
|
|
|
|
|
MoveDown
|
|
|
|
|
SwitchPlayer
|
|
|
|
|
Abort
|
|
|
|
|
Activate
|
|
|
|
|
Any
|
|
|
|
|
)
|