public Enemy(WMath.Vector2 position) { visual = Resources.Load <Texture2D>("pacman"); Circle = new WMath.Circle(); Circle.Radius = visual.width * .5f; Position = position; }
public Projectile(WMath.Vector2 position, WMath.Vector2 direction, float startVelocity, float acceleration) { visual = Resources.Load <Texture2D>("pacman"); Circle = new WMath.Circle { Position = position, Radius = visual.width * .5f * SCALE }; velocity = startVelocity; accelerationPerSecond = acceleration; Direction = direction; }