Example #1
0
 public CriticalStrike()
 {
     this.lvlreq         = 200;
     this.spacing        = 140;
     this.active_image   = new Image("Assets/Img/Gui/icon_perfectaim_active.png");
     this.inactive_image = new Image("Assets/Img/Gui/icon_perfectaim_inactive.png");
     AddGraphic(can_buy);
     can_buy.SetPosition(X - 1, Y - 1);
     AddGraphic(active_image);
     AddGraphic(inactive_image);
     SetPosition(1920 / 2 + 102, 1080 - 261 - 50);
     infoBackground.SetPosition(infoBackground.X - 51 * 2, infoBackground.Y);
     InfoText.SetPosition(InfoText.X - 51 * 2, InfoText.Y);
     skillName.SetPosition(skillName.X - 51 * 2, skillName.Y);
     this.name          = "Perfect Aim";
     this.magnitude     = (3 * this.level) + 14;
     this.cost          = GetNextUpgradeCost(this.lvlreq, this.spacing);
     this.cooldown      = 0;
     this.TotalCooldown = 30 * 60 * 60;
     this.duration      = 30 * 60;
     scene.Add(this);
     skillName.String = this.name;
     CreateText(ref durationText, "test", 20, new Vector2(0, 0));
     durationText.Visible = true;
     durationText.CenterTextOrigin();
     durationText.SetPosition(25, 25);
 }
Example #2
0
 public MoneyShot()
 {
     this.lvlreq         = 500;
     this.spacing        = 130;
     this.active_image   = new Image("Assets/Img/Gui/icon_transmute_active.png");
     this.inactive_image = new Image("Assets/Img/Gui/icon_transmute_inactive.png");
     AddGraphic(can_buy);
     can_buy.SetPosition(X - 1, Y - 1);
     AddGraphic(active_image);
     AddGraphic(inactive_image);
     SetPosition(1920 / 2 + 51 * 5, 1080 - 261 - 50);
     infoBackground.SetPosition(infoBackground.X - 51 * 5, infoBackground.Y);
     InfoText.SetPosition(InfoText.X - 51 * 5, InfoText.Y);
     skillName.SetPosition(skillName.X - 51 * 5, skillName.Y);
     this.name          = "Transmute";
     this.magnitude     = (5 * this.level) + 10;
     this.cost          = GetNextUpgradeCost(this.lvlreq, this.spacing);
     this.cooldown      = 0;
     this.TotalCooldown = 60 * 60 * 60;
     this.duration      = 30 * 60;
     scene.Add(this);
     skillName.String = this.name;
     CreateText(ref durationText, "test", 20, new Vector2(0, 0));
     durationText.Visible = true;
     durationText.CenterTextOrigin();
     durationText.SetPosition(25, 25);
 }
Example #3
0
 public Clone()
 {
     this.lvlreq  = 100;
     this.spacing = 100;
     spritemap.Add(Animation.Idle, "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15", 4);
     spritemap.Add(Animation.Activating, "16-31", 4).NoRepeat();
     spritemap.Add(Animation.Deactivating, "31-16", 4).NoRepeat();
     spritemap.Add(Animation.Dead, "16", 4).NoRepeat();
     spritemap.Add(Animation.IdleToShooting, "32-35", 2).NoRepeat();
     spritemap.Add(Animation.ShootingToIdle, "35-32", 2).NoRepeat();
     spritemap.Add(Animation.Shoot, "36-40", 2);
     spritemap.CenterOrigin();
     spritemap.Play(Animation.Dead);
     AddGraphic(spritemap);
     //spritemap.SetPosition(spritemap.X + 920, spritemap.Y + 660);
     spritemap.SetPosition(0, -100);
     this.active_image   = new Image("Assets/Img/Gui/icon_clone_active.png");
     this.inactive_image = new Image("Assets/Img/Gui/icon_clone_inactive.png");
     AddGraphic(can_buy);
     infoBackground.SetPosition(infoBackground.X - 51, infoBackground.Y);
     InfoText.SetPosition(InfoText.X - 51, InfoText.Y);
     skillName.SetPosition(skillName.X - 51, skillName.Y);
     can_buy.SetPosition(X - 1, Y - 1);
     AddGraphic(active_image);
     AddGraphic(inactive_image);
     SetPosition(1920 / 2 + 51, 1080 - 261 - 50);
     this.name          = "Unit 02";
     this.magnitude     = (3 * this.level) + 4;
     this.cost          = GetNextUpgradeCost(100, 100);
     this.cooldown      = 0;
     this.TotalCooldown = 10 * 60 * 60;
     this.duration      = 30 * 60;
     scene.Add(this);
     skillName.String = this.name;
     CreateText(ref durationText, "test", 20, new Vector2(0, 0));
     durationText.Visible = true;
     durationText.CenterTextOrigin();
     durationText.SetPosition(25, 25);
 }