public PlayModeViewModel(ShellViewModel shellViewModel, GameOptionsModel gameOptions) { this.shellViewModel = shellViewModel; this.gameOptions = gameOptions; headPosition = startPoint; lastDirection = Direction.Right; nextStep.X = stepSize; tickTimer.Tick += new EventHandler(OnTimerTick); tickTimer.Interval = new TimeSpan((int)gameOptions.Difficulty); tickTimer.Start(); }
public void ChangeToPlayMode(GameOptionsModel gameOptions) { playModeViewModel = new PlayModeViewModel(this, gameOptions); ActivateItem(playModeViewModel); }