protected override void LoadContent() { spriteBatch = new SpriteBatch(Game.GraphicsDevice); gokuPlayer = new GokuPlayer(Game.Content.Load<Texture2D>(@"Images/Goku"), Game.Content.Load<SoundEffect>(@"Sound/Dragonball Z Charge Sound"), Game.Content.Load<SoundEffect>(@"Sound/SSloop"), PlayerIndex.Two); vegetaPlayer = new VegetaPlayer(Game.Content.Load<Texture2D>(@"Images/Vegeta"), Game.Content.Load<SoundEffect>(@"Sound/Dragonball Z Charge Sound"), Game.Content.Load<SoundEffect>(@"Sound/SSloop"), PlayerIndex.One); font = Game.Content.Load<SpriteFont>("Images/dbzFont"); //platform = new Platform(Game.Content.Load<Texture2D>(@"Images/BlankPlatform"), new Vector2(200,200)); spriteList.Add(new Gohan(Game.Content.Load<Texture2D>(@"Images/gohan"))); platformList.Add(new Platform(Game.Content.Load<Texture2D>(@"Images/BlankPlatform"), new Vector2(100, 400))); platformList.Add(new Platform(Game.Content.Load<Texture2D>(@"Images/BlankPlatform"), new Vector2(200, 600))); platformList.Add(new Platform(Game.Content.Load<Texture2D>(@"Images/BlankPlatform"), new Vector2(800, 600))); platformList.Add(new Platform(Game.Content.Load<Texture2D>(@"Images/BlankPlatform"), new Vector2(900, 400))); spriteList.Add(new Frieza(Game.Content.Load<Texture2D>(@"Images/frieza"))); background = Game.Content.Load<Texture2D>(@"Images/background"); base.LoadContent(); }
public ChargingState(DbzPlayer player) : base(player) { }
public JumpKickState(DbzPlayer player) : base(player) { }
public JumpingState(DbzPlayer player) : base(player) { }
public RunningState(DbzPlayer player) : base(player) { }
public IdleState(DbzPlayer player) : base(player) { // define the standing still frame //stillFrame = new Point(14, 0); }
protected AbstractState(DbzPlayer player) { this.player = player; }