public void RenderWholeWorld() { try { Device.Clear(ClearFlags.Target, DeviceColor, 0, 1); Device.BeginScene(); TargetsManager.CreateTargets().RenderTarget(); StickManager.GetStick().RenderStick(); PlayerManager.CreatePlayerManager().PlayerRender(Device); ScoreManager.GetScoreManager().RenderScore(Device); HangingMoodie.CreatehHangingMoodie().Render(); Device.EndScene(); Device.Present(); }catch (Exception) { }; }
public void CheckHangingMoodie() { int listNumber = 0, moodieNumber = 0, flag = 0; for (listNumber = 0; listNumber < targets.MoodieList.Count; listNumber++) { for (moodieNumber = 0; moodieNumber < targets.MoodieList[listNumber].Count; moodieNumber++) { if (listNumber > 0 && moodieNumber > 0 && moodieNumber > targets.MoodieList[0].Count - 1 && targets.MoodieList[listNumber][moodieNumber + 1].getShowFlag() == false && targets.MoodieList[listNumber][moodieNumber + 1].getShowFlag() == false && targets.MoodieList[listNumber - 1][moodieNumber].getShowFlag() == false) { HangingMoodie.CreatehHangingMoodie().AddHangingMoodie(targets.MoodieList[listNumber][moodieNumber]); targets.MoodieList[listNumber][moodieNumber].DisableShowFlag(); ScoreManager.GetScoreManager().Update(); } } } }