Proper bullet origin and offset.

This commit is contained in:
Simon Holmberg
2012-10-31 23:40:59 +00:00
parent dee5ed9e69
commit d9bff905b5
+2 -1
View File
@@ -52,7 +52,7 @@ namespace DepthsBelow
if (Texture == null)
LoadContent();
Transform.World.Origin = new Vector2(16, 16);
//Transform.World.Origin = new Vector2(16, 16);
Stat = _soldierStat;
@@ -63,6 +63,7 @@ namespace DepthsBelow
this.Color = Color.White;
var rc = new SpriteRenderer(this) { Texture = Texture, Color = Color.White };
rc.Offset = new Vector2(16, 16);
AddComponent(rc);
var cc = new Collision(this, 32, 32);