public void GameStartsWithWaveOne() { InvadersModel model = new InvadersModel(); model.StartGame(); Assert.Equal(1, model.Wave); }
public InvadarsViewModel() { Model = new InvadersModel(); Bug b1 = new Bug(); Sprite.Add(b1); startTimer(); }
public InvadersViewModel() { _model = new InvadersModel(); Scale = 1; PopulateSprites(); _timer.Interval = TimeSpan.FromMilliseconds(100); _timer.Tick += timer_Tick; _timer.Start(); _model.StarChanged += StarChangedHandler; _model.ShipChanged += ShipChangedHandler; _model.ShotMoved += ShotMovedHandler; _model.EndGame(); }