public CGuiLevel2(CInfoLevelBase dto) : base(dto) { Dto.ListButton.Add(new CBusiButton(new CInfoButton(dto.Game.Content.Load<Texture2D>("Images/Button/sound"), new Vector2(0, CGlobalVariable.WINDOW_HEIGHT - 50)))); Dto.Player = new CBusiPlayer(new CInfoPlayer(dto.Game, "player_2", new Vector2(400, 400), 5, 2, 5, 100)); Dto.Background = new CBusiBackground(new CInfoBackground(dto.Game, "bg_level2_1", "bg_level2_2", 2)); Dto.PointDestination = 10; }
public CBusiLevelBase(CInfoLevelBase info) : base(info) { dto = info; lblScore = dto.Game.Content.Load<Texture2D>("Images/Label/lbl_score"); lblLife = dto.Game.Content.Load<Texture2D>("Images/Label/lbl_life"); posScore = new Vector2(10, 10); posLife = new Vector2(800, 550); }
public CGuiLevel1(CInfoLevelBase info) : base(info) { dto = info; dto.ListButton.Add(new CBusiButton(new CInfoButton(info.Game.Content.Load<Texture2D>("Images/Button/sound"), new Vector2(0, CGlobalVariable.WINDOW_HEIGHT - 50)))); dto.Player = new CBusiPlayer(new CInfoPlayer(info.Game, "player_1", new Vector2(400, 400), 5, 2, 5, 1)); dto.Background = new CBusiBackground(new CInfoBackground(info.Game, "bg_level1_1", "bg_level1_2", 2)); dto.PointDestination = 1; dto.Boss = new CBusiBoss(new CInfoBoss(info.Game, "boss_1", new Vector2(400, 0), 5, 100, 100)); MediaPlayer.Play(dto.Game.Content.Load<Song>("Sound/Background/1")); }