예제 #1
0
파일: Enemy.cs 프로젝트: Mechgun/BattleTank
 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
파일: Shot.cs 프로젝트: Mechgun/BattleTank
 //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
파일: Game1.cs 프로젝트: Mechgun/BattleTank
        /// <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;
 }