Try gooner animation

This commit is contained in:
2025-01-20 14:30:34 +01:00
parent bcd63efd7b
commit 0e509ad752
10 changed files with 2674 additions and 19 deletions

View File

@ -26,15 +26,29 @@ type Player struct {
ID int32
CurrentTick int64
LastUpdateTime time.Time
LastAnimUpdate time.Time
InterpolationProgress float32
UserData interface{}
FloatingMessage *FloatingMessage
QuitDone chan struct{}
AnimationFrame int32
IsMoving bool
}
type AnimationSet struct {
Idle []rl.ModelAnimation
Walk []rl.ModelAnimation
// Can add more animation types later like:
// Attack []ModelAnimation
// Jump []ModelAnimation
}
type ModelAsset struct {
Model rl.Model
Texture rl.Texture2D
Model rl.Model
Texture rl.Texture2D
Animation []rl.ModelAnimation // Keep this for compatibility
AnimFrames int32 // Keep this for compatibility
Animations AnimationSet // New field for organized animations
}
type ChatMessage struct {