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); }
static void Main() { using (var game = new Game1()) game.Run(); }
public virtual void LoadContent(string path, Game1 tehGame) { theGame = tehGame; _Texture = theGame.Content.Load<Texture2D>(path); if (!isAnimated) { SetupAnimation(1, 1, 1, false); } }