Beispiel #1
0
 public Tower1(Vector2 pos, Grid grid, float layer)
     : base(pos,grid,layer)
 {
     this.asset = "Tower1";
     this.damage = 20;
     this.cost = 100;
     this.angle = 0;
     this.LoadContent(GV.content);
 }
Beispiel #2
0
 //needs to not rotate
 public Tower3(Vector2 gridPos, Grid grid,float layer)
     : base(gridPos, grid,layer)
 {
     this.asset = "Tower3";
     this.target = GV.EnemyList[0];//Tower target
     this.damage = 25;
     this.cost = 125;
     this.angle = 0;
     this.LoadContent(GV.content);
 }
Beispiel #3
0
 public Tower(Vector2 pos,Grid grid,float layer)
 {
     this.pos = pos;
     this.layer = layer;
     this.target = GV.EnemyList[0];
 }
Beispiel #4
0
        protected override void Initialize()
        {
            this.IsMouseVisible = true;

            GV.content = Content;
            GV.spriteFont = Content.Load<SpriteFont>("font");

            Player.sprite = this.spriteBatch;
            //Level Initalizations
            this.grid = new Grid(GraphicsDevice);
            this.back = new Background();
            //this.ex = new Enemy(new Vector2(1, 1), grid, 0.9f);
            new Enemy();
            Startscreen=new StartingScreen(new Rectangle(0,0,GraphicsDevice.Viewport.Width,GraphicsDevice.Viewport.Height));
            base.Initialize();
            //screen size is (800,480) default
        }