public Shot(Texture2D texture, Vector2 position, Enemy targetEnemy, float speed) { this.texture = texture; this.Position = position; this.targetEnemy = targetEnemy; this.speed = speed; this.animation = new Animacao(texture, this.Position, 16, 16, 2, 90, 1.0f, true); Alive = true; }
public Enemy(Vector2 position, Texture2D texture) { this.Position = position; speed.X = 1.0f + Enemy.random.Next(0, 3); life = 100.0f; Alive = true; enemyAnimation = new Animacao(texture, position, 32, 32, 2, 90, 1f, true); stopTime = 0.0f; elapsedTime = 0.0f; }