goonscape/types.go

32 lines
502 B
Go
Raw Normal View History

2024-10-31 01:06:39 +01:00
package main
import rl "github.com/gen2brain/raylib-go/raylib"
type Tile struct {
X, Y int
Height float32
Walkable bool
}
type ActionType int
const (
MoveAction ActionType = iota
)
type Action struct {
Type ActionType
X, Y int // Target position for movement
}
type Player struct {
PosActual rl.Vector3
PosTile Tile
TargetPath []Tile
Speed float32
ActionQueue []Action // Queue for player actions
Model rl.Model
Texture rl.Texture2D
ID int32
}