Merge branch 'master' of github.com:sippeangelo/DepthsBelow

This commit is contained in:
2012-10-31 19:56:31 +01:00
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -23,6 +23,12 @@ namespace DepthsBelow
set { soldierStat = value; }
}
public string Type
{
get { return type; }
set { type = value; }
}
private bool _selected = false; //I guess as in "currently doing something"
public bool select
@@ -50,6 +56,11 @@ namespace DepthsBelow
Stat = _soldierStat;
if (type == "Rocket")
{
Stat.Strength = 50000;
}
this.Color = Color.White;
var rc = new SpriteRenderer(this) { Texture = Texture, Color = Color.White };
AddComponent(rc);
+1
View File
@@ -92,6 +92,7 @@ namespace DepthsBelow
GetComponent<SpriteRenderer>().Texture = Texture;
Transform.World.Origin = new Vector2(((float)Texture.Width) / 2f, ((float)Texture.Height) / 2f);
GetComponent<SpriteRenderer>().Offset = (new Vector2(Texture.Width / 2f, Texture.Height / 2f) - new Vector2(Grid.TileSize / 2, Grid.TileSize / 2)) * -1;
GetComponent<Stat>()._MaxHP = 500;
GetComponent<Stat>().MaxHP = 500;
GetComponent<Stat>().Life = 500;
GetComponent<Stat>().Defence = 15;