remove deprecated rand.Seed
This commit is contained in:
4
main.go
4
main.go
@@ -8,10 +8,8 @@ import (
|
|||||||
"io/fs"
|
"io/fs"
|
||||||
"log"
|
"log"
|
||||||
"math"
|
"math"
|
||||||
"math/rand"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/hajimehoshi/ebiten/v2"
|
"github.com/hajimehoshi/ebiten/v2"
|
||||||
|
|
||||||
@@ -205,8 +203,6 @@ func main() {
|
|||||||
width *= int(cfg.Scale)
|
width *= int(cfg.Scale)
|
||||||
height *= int(cfg.Scale)
|
height *= int(cfg.Scale)
|
||||||
|
|
||||||
rand.Seed(time.Now().UnixNano())
|
|
||||||
|
|
||||||
mSprite = make(map[string]*ebiten.Image)
|
mSprite = make(map[string]*ebiten.Image)
|
||||||
|
|
||||||
a, _ := fs.ReadDir(f, "assets")
|
a, _ := fs.ReadDir(f, "assets")
|
||||||
|
|||||||
Reference in New Issue
Block a user