public Enemy(Texture2D texture, Texture2D hitTexture, Vector2 position, MainGame.enemyClass enemyClass) { this.Texture = texture; this.hitTexture = hitTexture; this.Position = position; enemyBullets = new List<Projectile>(); this.Hitbox = texture.Bounds; gravity = 1.3f; speed = 0.25f; friction = 0.2f; hit = false; needsKill = false; this.enemyClass = enemyClass; flipEffect = SpriteEffects.FlipHorizontally; flipped = false; }
static void Main() { using (var game = new MainGame()) game.Run(); }