Zombie and health bar

This commit is contained in:
2023-11-30 14:49:01 +01:00
parent 9ea4c3beb2
commit c5b8fc40cb
10 changed files with 188 additions and 10 deletions

View File

@@ -1,5 +1,7 @@
package configuration
import "math/rand"
type Direction int
const (
@@ -13,3 +15,8 @@ const (
NorthWest
PreviouslyHeld
)
func Random(min, max int) float64 {
result := min + rand.Intn(max-min)
return float64(result)
}