From da38e93e55b6ff46a53dcd9d2be393149089d329 Mon Sep 17 00:00:00 2001 From: aldrikboy Date: Fri, 29 Dec 2017 17:27:49 +0100 Subject: obejct info, new level selector, credits haHA --- Penguloon/Objects/HealthGeneratorObject.cs | 54 ++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Penguloon/Objects/HealthGeneratorObject.cs (limited to 'Penguloon/Objects/HealthGeneratorObject.cs') diff --git a/Penguloon/Objects/HealthGeneratorObject.cs b/Penguloon/Objects/HealthGeneratorObject.cs new file mode 100644 index 0000000..460387c --- /dev/null +++ b/Penguloon/Objects/HealthGeneratorObject.cs @@ -0,0 +1,54 @@ +using Microsoft.Xna.Framework; +using Penguloon.Levels; +using Penguloon.Projectiles; +using System.Collections.Generic; + +namespace Penguloon.Objects +{ + public class HealthGeneratorObject : ObjectBase + { + public HealthGeneratorObject(Vector2 position, Map map) : base(position, map) + { + this.Texture = ContentManager.GetTexture("Objects/healthRegenerator"); + this.TileSpanX = 2; + this.TileSpanY = 1; + this.Range = Map.TileWidth * 1f; + this.AttackSpeedMS = 9999999; + this.ShouldRotate = false; + this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectHospital); + } + + public HealthGeneratorObject(Map map) : base(map) + { + this.Texture = ContentManager.GetTexture("Objects/healthRegenerator"); + this.TileSpanX = 2; + this.TileSpanY = 1; + this.Range = Map.TileWidth * 1f; + this.AttackSpeedMS = 9999999; + this.ShouldRotate = false; + this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectHospital); + } + + public override void DrawUnique(float deltaTime) + { + + } + + public override void UpdateUnique(float deltaTime) + { + + } + + public override void RoundIsFinished() + { + base.RoundIsFinished(); + + Map.Level.Health += 25; + } + + public override void SpawnUnique() + { + + } + } +} \ No newline at end of file -- cgit v1.2.3-70-g09d2