Beispiel #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (DestructionXNA game = new DestructionXNA())
     {
         game.Run();
     }
 }
        public BeamDrawer(DestructionXNA game, Texture2D texture, Vector3 length)
        {
            this.game = game;
            this.texture = texture;
            this.length = length;

            InitializeEffect();
            InitializeTriangleStrip();
        }
 public BaseCamera(DestructionXNA game)
     : base(game)
 {
     this.game = game;
     this.position = new Vector3(0, 10, 30);
     this.target = new Vector3(0, 0, 0);
     InitializeProjection();
     UpdateViewMatrix();
 }
Beispiel #4
0
        public BaseBlock(DestructionXNA game, Model model, BlockType type)
            : base(game)
        {
            this.game = game;
            this.model = model;
            this.type = type;

            physicsObject = new PhysicsObject(type.ToString());
            CreatePhysicsBody();
            physicsObject.Body.AllowFreezing = true;
        }
Beispiel #5
0
        public Beam(DestructionXNA game, Texture2D texture, Model model)
            : base(game)
        {
            this.game = game;
            this.texture = texture;
            this.model = model;

            InitializePhysicsObject();

            drawer = new BeamDrawer(game, texture, boxBaseLength);
        }
        public NicoNicoTVChan(DestructionXNA game, Model model)
            : base(game)
        {
            this.game = game;
            this.model = model;

            this.physicsObject = new PhysicsObject("NicoNicoTVChan");
            PhysicsObject po = this.physicsObject;
            po.SetCreateProperty(2, 2f, 1f, 1f);
            po.CreateBox(Vector3.Zero, Matrix.Identity, length);
            po.Body.AllowFreezing = false;
        }
Beispiel #7
0
 public DoorBlock(DestructionXNA game, Model model)
     : base(game, model, BlockType.Roof)
 {
     positionOffset = offset;
 }
 public ThirdPersonCamera(DestructionXNA game)
     : base(game)
 {
     this.targetBody = nullBody;
 }
 public HalfWallBlock(DestructionXNA game, Model model)
     : base(game, model, BlockType.HalfWall)
 {
 }
Beispiel #10
0
 public TVChanController(DestructionXNA game)
     : base(game)
 {
     this.game = game;
 }