Example #1
0
            public void InitialiseModel(ModelInterface m)
            {
                MapGenerator g = this.GameMode.Generator;

                m.SetStopped(false);
                m.SetLost(false);

                m.SetMapDimensions(new Vector2D(this.Width, this.Height));

                this._ship.Position = new Vector2D((this.Width - this._ship.Dimension.X) / 2, 0);
                m.AddShip(this._ship);

                m.SetBricks(g.generateMap(m.GetLevel(), this.Width, this.LevelHeight, this.GameMode.MinSpeed));
                m.RemoveBalls();

                m.AddBall();
            }
Example #2
0
            public void InitialiseModel(ModelInterface m)
            {
                MapGenerator g = this.GameMode.Generator;

                m.SetStopped(false);
                m.SetLost(false);

                m.SetMapDimensions(new Vector2D(this.Width, this.Height));

                this._ship.Position = new Vector2D((this.Width - this._ship.Dimension.X) / 2, 0);
                m.AddShip(this._ship);

                m.SetBricks(g.generateMap(m.GetLevel(), this.Width, this.LevelHeight, this.GameMode.MinSpeed));
                m.RemoveBalls();

                m.AddBall();
            }