示例#1
0
        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;
        }
示例#2
0
 static void Main()
 {
     using (var game = new MainGame())
         game.Run();
 }
示例#3
0
 static void Main()
 {
     using (var game = new MainGame())
         game.Run();
 }