public void Initialize() { Player.playerStock = playerSyoki; Player2.player2Stock = player2Syoki; Player3.player3Stock = player3Syoki; Glass.glassStock = glassSyoki; bgmLoader = new BGMLoader(new string[, ] { { "GamePlay1", "./Sound/" } }); bgmLoader.Initialize(); unchis = new List <Unchi>(); camp = new Camp(); count = new Count(); glasses = new List <Glass>(); glasses.Add(new Glass()); returnTitleFlag = false; isClearFlag = false; isEndFlag = false; handFlag = false; foreach (var g in glasses) { g.Initialize(); } wall = new Wall(new Vector2(650, 200), new Rectangle(0, 0, 9 * 50, 1 * 50)); walls = new List <Wall>(); walls.Add(wall); walls.Add(new Wall(new Vector2(500, 400), new Rectangle(0, 0, 1 * 50, 5 * 50))); walls.Add(new Wall(new Vector2(650, 800), new Rectangle(0, 0, 9 * 50, 1 * 50))); walls.Add(new Wall(new Vector2(1200, 400), new Rectangle(0, 0, 1 * 50, 5 * 50))); foreach (var wa in walls) { wa.Initialize(); } players = new List <PlayerMather>(); foreach (var pl in players) { pl.Initialize(); } wave = new Wave(camp, players, walls, unchis, glasses, isClearFlag, isEndFlag); wave.Initialize(); nextDayPos = new Vector2((Screen.ScreenWidth / 2) - 150, (Screen.ScreenHeight / 2) + 80); goTitlePos = new Vector2((Screen.ScreenWidth / 2) - 150, (Screen.ScreenHeight / 2) + 80); titleButton = new Button(ButtonType.resultUI_title, goTitlePos, 400, 100, this); nextDay = new Button(ButtonType.nextday, nextDayPos, 400, 100, wave); }
/// <summary> /// 初期化 /// </summary> public void Initialize() { endFlag = false; textureLoader.Initialize(); bgmLoader.Initialize(); seLoader.Initialize(); totalResouceNum = textureLoader.Count() + bgmLoader.Count() + seLoader.Count(); }
public void Initialize(SceneType sceneType) { endFlag = false; textureLoader.Initialize(); bgmLoader.Initialize(); seLoader.Initialize(); //全リソース数を計算 totalResouceNum = textureLoader.Count() + bgmLoader.Count() + seLoader.Count(); }
/// <summary> /// 初期化 /// </summary> public void Initialize() { //終了フラグを継続に設定 isEndFlag = false; //テクスチャ読み込みオブジェクトを初期化 textureLoader.Initialize(); //BGM読み込みオブジェクトを初期化 bgmLoader.Initialize(); //SE読み込みオブジェクトを初期化 seLoader.Initialize(); //全リソース数を計算 totalResouceNum = textureLoader.RegistMAXNum() + bgmLoader.RegistMAXNum() + seLoader.RegistMAXNum(); }
public void Initialize() { isEndFlag = false; tutorialPos = new Vector2(50, 50); buttons = new List <Button>(); playStyleButtons = new List <Button>(); startButtonPos = new Vector2((Screen.ScreenWidth / 2) - 200, (Screen.ScreenHeight / 2) + 80); playStylePos = new Vector2((Screen.ScreenWidth / 2) - 200, (Screen.ScreenHeight / 2) + 210); gameEndPos = new Vector2((Screen.ScreenWidth / 2) - 200, (Screen.ScreenHeight / 2) + 335); playStylePagePos = new Vector2(50, 60); arrowHukidashiPos = new Vector2(350, 600); rightArrow = new Vector2(1000, 835); leftArrow = new Vector2(400, 835); slashPos = new Vector2(715, 835); pageNumPos = new Vector2(650, 835); pageEndNumPos = new Vector2(775, 835); playStyleEndPos = new Vector2(1300, 50); buttons.Add(new Button(ButtonType.titleUI_hajimeru, startButtonPos, 400, 100, this)); buttons.Add(new Button(ButtonType.titleUI_setsumei, playStylePos, 400, 100, this)); buttons.Add(new Button(ButtonType.titleUI_owaru, gameEndPos, 400, 100)); playStyleButtons.Add(new Button(ButtonType.yajirushi, rightArrow, 64, 64, this)); playStyleButtons.Add(new Button(ButtonType.hidarikun, leftArrow, 64, 64, this)); playStyleButtons.Add(new Button(ButtonType.titleUI_setsumei_end, playStyleEndPos, 64, 64, this)); bgmLoader = new BGMLoader(new string[, ] { { "title", "./Sound/" } }); bgmLoader.Initialize(); kimeunchiR = 0; kimeunchiUpR = true; kimeunchiG = 0; kimeunchiUpG = true; kimeunchiG = 0; kimeunchiUpG = true; }
/// <summary> /// 初期化処理(起動時、コンストラクタの後に1度だけ呼ばれる) /// </summary> protected override void Initialize() { // この下にロジックを記述 gameDevice = GameDevice.Instance(Content, GraphicsDevice); Window.Title = "うんこ"; sceneManager = new SceneManager(); sceneManager.Add(SceneName.Title, new Title()); sceneManager.Add(SceneName.Load, new Load()); IScene addScene = new GamePlay(); sceneManager.Add(SceneName.GamePlay, addScene); sceneManager.Change(SceneName.Title); bgmLoader = new BGMLoader(new string[, ] { { "GamePlay1", "./Sound/" } }); bgmLoader.Initialize(); // この上にロジックを記述 base.Initialize();// 親クラスの初期化処理呼び出し。絶対に消すな!! }