Fix tickrate and action queue stuff

This commit is contained in:
2025-01-13 10:00:23 +01:00
parent 8d70129c73
commit 0a58e0453a
6 changed files with 47 additions and 77 deletions

View File

@ -89,13 +89,13 @@ func main() {
rl.ClearBackground(rl.RayWhite)
rl.BeginMode3D(camera)
DrawMap()
DrawPlayer(player, player.Model)
DrawPlayer(&player, player.Model)
for id, other := range otherPlayers {
if len(other.TargetPath) > 0 {
other.MoveTowards(other.TargetPath[0], deltaTime)
}
DrawPlayer(*other, models[int(id)%len(models)].Model)
DrawPlayer(other, models[int(id)%len(models)].Model)
}
rl.EndMode3D()