Exemplo n.º 1
0
        public override void LoadContent(string path, Game1 tehGame)
        {
            theGame = tehGame;
            for (int i = 0; i < 50; i++)
            {
                Bullet bullet = new Bullet();
                bullet.LoadContent("bullet", tehGame);
                bullet._Draw = false;
                bullet._CurrentState = Sprite.SpriteState.kStateInActive;
                bulletList.Add(bullet);
            }

            base.LoadContent(path,theGame);
            //base.SetupAnimation(5, 30, 1, true);
        }
Exemplo n.º 2
0
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }
Exemplo n.º 3
0
 public virtual void LoadContent(string path, Game1 tehGame)
 {
     theGame = tehGame;
     _Texture = theGame.Content.Load<Texture2D>(path);
     if (!isAnimated)
     {
         SetupAnimation(1, 1, 1, false);
     }
 }