Пример #1
0
 public Enemy(Model model, Vector3 Position, float Speed, GraphicsDevice device, camera camera, ModelManager modelManager)
     : base(model)
 {
     this.modelmanager = modelManager;
     world =  Matrix.CreateTranslation(Position);
     position = Position;
     speed = Speed;
 }
Пример #2
0
 //Tank tank;
 public Shot(Model model, Vector3 Position, Vector3 Direction, float Speed, ModelManager modelManager)
     : base(model)
 {
     this.modelmanager = modelManager;
     shotPosition = Position;
     shotDirection = Direction;
     shotSpeed = Speed;
     world = Matrix.CreateTranslation(Position);
 }
Пример #3
0
 public SkyBox(Model model, ModelManager modelManager)
     : base(model)
 {
     this.modelmanager = modelManager;
 }
Пример #4
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            camera = new camera(this, new Vector3(0, 50, 200), new Vector3(0, 0, 0), Vector3.Up);
            Components.Add(camera);

            ModelManager = new ModelManager(this);
            Components.Add(ModelManager);
            this.IsMouseVisible = true;

            base.Initialize();
        }
Пример #5
0
 public SkyBox(Model model, ModelManager modelManager)
     : base(model)
 {
     this.modelmanager = modelManager;
 }