add moving animation support, fix debug printing

This commit is contained in:
2024-04-16 17:46:53 +02:00
parent f2f134fddb
commit b7383f065f
7 changed files with 37 additions and 9 deletions

View File

@@ -1,7 +1,10 @@
package util
import (
"context"
. "openquell/config"
"log/slog"
)
// find an item in a list, generic variant
@@ -41,3 +44,7 @@ func DirectionStr(dir int) string {
return str
}
func DebugEnabled() bool {
return slog.Default().Enabled(context.TODO(), slog.LevelDebug)
}