Fix OOB and refactor

This commit is contained in:
2024-10-31 01:06:39 +01:00
parent 2b9ece3c10
commit 5c5040cd42
13 changed files with 579 additions and 508 deletions
+31
View File
@@ -0,0 +1,31 @@
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
}