Example #1
0
        public Game1()
        {
            graphics     = new GraphicsDeviceManager(this);
            Window.Title = "Asteroids 3D in XNA 4 Chapter Five";
            graphics.PreferredBackBufferWidth  = 1024;
            graphics.PreferredBackBufferHeight = 600;
            graphics.ApplyChanges();

            Content.RootDirectory = "Content";

            Camera     = new Engine.Camera(this, new Vector3(0, 0, 275), Vector3.Forward, Vector3.Zero, false, 200, 325);
            Background = new Entities.Background(this);
            screenHUD  = new Entities.HUD(this);
            Player     = new Entities.Player(this);
            UFOs       = new Entities.UFOController(this);
            Rocks      = new Entities.RockController(this);
        }
Example #2
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Window.Title = "Asteroids 3D in XNA 4 Chapter Five";
            graphics.PreferredBackBufferWidth = 1024;
            graphics.PreferredBackBufferHeight = 600;
            graphics.ApplyChanges();

            Content.RootDirectory = "Content";

            Camera = new Engine.Camera(this, new Vector3(0, 0, 275), Vector3.Forward, Vector3.Zero, false, 200, 325);
            Background = new Entities.Background(this);
            screenHUD = new Entities.HUD(this);
            Player = new Entities.Player(this);
            UFOs = new Entities.UFOController(this);
            Rocks = new Entities.RockController(this);
        }
Example #3
0
 public Rock(Game game, Player player, RockController rocks)
     : base(game)
 {
     this.player = player;
     this.rocks  = rocks;
 }
Example #4
0
 public SmallRock(Game game, Player player, RockController rocks)
     : base(game, player, rocks)
 {
 }
Example #5
0
 public SmallRock(Game game, Player player, RockController rocks)
     : base(game, player, rocks)
 {
 }
Example #6
0
 public Rock(Game game, Player player, RockController rocks)
     : base(game)
 {
     this.player = player;
     this.rocks = rocks;
 }
Example #7
0
 public MediumRock(Game game, Player player, RockController rocks)
     : base(game, player, rocks)
 {
 }
Example #8
0
 public MediumRock(Game game, Player player, RockController rocks)
     : base(game, player, rocks)
 {
 }