fix: put randomseed reseter in correct position
This commit is contained in:
parent
c0283877ce
commit
136ef0ca94
|
@ -12,6 +12,7 @@ import Label from "../../Wolfie2D/Nodes/UIElements/Label";
|
||||||
import Levels from "./Levels";
|
import Levels from "./Levels";
|
||||||
import RandomMapGenerator from "../Tools/RandomMapGenerator";
|
import RandomMapGenerator from "../Tools/RandomMapGenerator";
|
||||||
import GameLevel from "./GameLevel";
|
import GameLevel from "./GameLevel";
|
||||||
|
import InputWrapper from "../Tools/InputWrapper";
|
||||||
|
|
||||||
export default class MainMenu extends Scene {
|
export default class MainMenu extends Scene {
|
||||||
protected config: ConfigManager;
|
protected config: ConfigManager;
|
||||||
|
@ -32,6 +33,7 @@ export default class MainMenu extends Scene {
|
||||||
|
|
||||||
startScene(): void{
|
startScene(): void{
|
||||||
GameLevel.gameTimer = 0;
|
GameLevel.gameTimer = 0;
|
||||||
|
InputWrapper.randomSeed = undefined;
|
||||||
const center = this.viewport.getCenter();
|
const center = this.viewport.getCenter();
|
||||||
|
|
||||||
// The main menu
|
// The main menu
|
||||||
|
|
Loading…
Reference in New Issue
Block a user