public override void Intialize() { base.Intialize(); announcer = new DriveSelectorAnnouncer(GoToNextWorld, new Color(150, 255, 130), new ButtonPressed(GoToStoryWorld), new ButtonPressed(GoToSurvivalWorld), new ButtonPressed(GoToAchievementWorld), new ButtonPressed(GoToMainMenu)); announcer.EscapeHandler = GoToMainMenu; AddOverLayer(announcer); AddBackground(GlobalVariables.Background); CursorEntity.CursorView = CursorType.Normal; for (int i = 0; i < 15; i++) { VirusEnemy e = new VirusEnemy(); e.Position.X = OGE.Random.Next((int)Dimensions.X); e.Position.Y = OGE.Random.Next((int)Dimensions.Y); viruses.Add(e); AddEntity(e); } SoundManager.PlayMusic("menu"); }
public override void Intialize() { base.Intialize(); TextAnnouncerEntity announcer = new TextAnnouncerEntity(new AnnouncerEnded(GoToMainMenu), new Color(150, 255, 130), "Review Version Console", "You are only authorized to view, review and to retain\n" + "a copy of the game for your own personal use.\n" + "Do not duplicate, publish or otherwise distribute the game unless\n" + "specifically authorized by Omidos to do so.", 600, 0.5f); announcer.EscapeHandler = GoToMainMenu; AddOverLayer(announcer); AddBackground(GlobalVariables.Background); CursorEntity.CursorView = CursorType.Normal; for (int i = 0; i < 15; i++) { VirusEnemy e = new VirusEnemy(); e.Position.X = OGE.Random.Next((int)Dimensions.X); e.Position.Y = OGE.Random.Next((int)Dimensions.Y); viruses.Add(e); AddEntity(e); } SoundManager.PlayMusic("menu"); }
public override void Intialize() { base.Intialize(); VirusButtonAnnouncerEntity announcer = new VirusButtonAnnouncerEntity(null, new Color(150, 255, 130), newViruses, "Start Scanning", GoToGamePlay); announcer.EscapeHandler = GoToArmory; AddOverLayer(announcer); AddBackground(GlobalVariables.Background); CursorEntity.CursorView = CursorType.Normal; for (int i = 0; i < 15; i++) { VirusEnemy e = new VirusEnemy(); e.Position.X = OGE.Random.Next((int)Dimensions.X); e.Position.Y = OGE.Random.Next((int)Dimensions.Y); viruses.Add(e); AddEntity(e); } SoundManager.PlayMusic("menu"); }
public override void Intialize() { base.Intialize(); TextAnnouncerEntity announcer = new TextAnnouncerEntity(new AnnouncerEnded(GoToDriveWorld), new Color(150, 255, 130), "End of Demo Console", "Thanks for playing Clean'Em Up Demo Version\n" + "Hope you enjoyed playing it and consider buying full version\n" + "Full version will include:\n" + "- 70+ Levels\n" + "- 5 Gameplay modes\n" + "- 3 Survival modes\n" + "- 5 Boss Fights\n" + "- 18 Weapons\n" + "- 6 Characters\n" + "And more...", 600, 0.5f); announcer.EscapeHandler = GoToDriveWorld; AddOverLayer(announcer); AddBackground(GlobalVariables.Background); CursorEntity.CursorView = CursorType.Normal; for (int i = 0; i < 15; i++) { VirusEnemy e = new VirusEnemy(); e.Position.X = OGE.Random.Next((int)Dimensions.X); e.Position.Y = OGE.Random.Next((int)Dimensions.Y); viruses.Add(e); AddEntity(e); } SoundManager.PlayMusic("menu"); }
public override void Intialize() { base.Intialize(); TextAnnouncerEntity announcer = new TextAnnouncerEntity(new AnnouncerEnded(GoToGamePlay), new Color(150, 255, 130), "Story Console", GlobalVariables.Drive.DrivesData[GlobalVariables.CurrentDrive - 1].BeginningStory, 600, 0.5f); announcer.EscapeHandler = GoToDriveConsole; AddOverLayer(announcer); AddBackground(GlobalVariables.Background); CursorEntity.CursorView = CursorType.Normal; for (int i = 0; i < 15; i++) { VirusEnemy e = new VirusEnemy(); e.Position.X = OGE.Random.Next((int)Dimensions.X); e.Position.Y = OGE.Random.Next((int)Dimensions.Y); viruses.Add(e); AddEntity(e); } SoundManager.PlayMusic("menu"); }
public override void Intialize() { base.Intialize(); List<string> names = new List<string>(); List<int> scores = new List<int>(); List<string> units = new List<string>(); names.Add("Best Score Survival"); names.Add("Best Time Survival"); names.Add("Best File Survival"); units.Add("pts"); units.Add("secs"); units.Add("files"); for (int i = 0; i < GlobalVariables.SurvivalScores.Count; i++) { scores.Add(GlobalVariables.SurvivalScores[i]); } announcer = new StatisticAnnouncer(ReturnToSurvivalTypeWorld, new Color(150, 255, 130), "Survival Statistic Console", names, scores, units); announcer.EscapeHandler = ReturnToSurvivalTypeWorld; AddOverLayer(announcer); AddBackground(GlobalVariables.Background); CursorEntity.CursorView = CursorType.Normal; for (int i = 0; i < 15; i++) { VirusEnemy e = new VirusEnemy(); e.Position.X = OGE.Random.Next((int)Dimensions.X); e.Position.Y = OGE.Random.Next((int)Dimensions.Y); viruses.Add(e); AddEntity(e); } SoundManager.PlayMusic("menu"); }
public override void Intialize() { base.Intialize(); announcer = new AchievementAnnouncer(ReturnToDriveConsole, new Color(150, 255, 130)); announcer.EscapeHandler = ReturnToDriveConsole; AddOverLayer(announcer); AddBackground(GlobalVariables.Background); CursorEntity.CursorView = CursorType.Normal; for (int i = 0; i < 15; i++) { VirusEnemy e = new VirusEnemy(); e.Position.X = OGE.Random.Next((int)Dimensions.X); e.Position.Y = OGE.Random.Next((int)Dimensions.Y); viruses.Add(e); AddEntity(e); } SoundManager.PlayMusic("menu"); }
private void GenerateVirus() { if (OGE.CurrentWorld.GetCollisionEntitiesType(CollisionType.Player).Count <= 0 || OGE.CurrentWorld.GetCollisionEntitiesType(CollisionType.Enemy).Count > BaseGenerator.MAXIMUM_GENRATION) { return; } VirusEnemy temp = new VirusEnemy(); temp.Position = Position; temp.GeneratedVirus(); OGE.CurrentWorld.AddEntity(temp); }
public override void Intialize() { base.Intialize(); Color color = new Color(150, 255, 130); List<CreditData> credits = new List<CreditData>(); credits.Add(new CreditData { Title = "Game by" }); credits[0].Names.Add("Omidos Entertainment"); credits.Add(new CreditData { Title = "Music by" }); credits[1].Names.Add("Mikeal BauAir"); credits.Add(new CreditData { Title = "Additional Art by" }); credits[2].Names.Add("Ahmed Ibrahim"); credits.Add(new CreditData { Title = "Additional Support by" }); credits[3].Names.Add("Mohamed Assem"); credits.Add(new CreditData { Title = "Thanks for everyone who helped to test the game" }); CreditsAnnouncer announcer = new CreditsAnnouncer(ReturnToMainMenu, color, "Credits Console", credits); announcer.ChangePosition(140); announcer.EscapeHandler = ReturnToMainMenu; AddOverLayer(announcer); gameLogo = new Image(OGE.Content.Load<Texture2D>(@"Graphics\Entities\WindowGraphics\CleanEmUpLogo")); gameLogo.CenterOrigin(); gameLogo.OriginX += 50; omidosLogo = new Image(OGE.Content.Load<Texture2D>(@"Graphics\Entities\WindowGraphics\Omidos")); omidosLogo.OriginX = omidosLogo.Width; omidosLogo.OriginY = omidosLogo.Height; AddBackground(GlobalVariables.Background); CursorEntity.CursorView = CursorType.Normal; for (int i = 0; i < 15; i++) { VirusEnemy e = new VirusEnemy(); e.Position.X = OGE.Random.Next((int)Dimensions.X); e.Position.Y = OGE.Random.Next((int)Dimensions.Y); viruses.Add(e); AddEntity(e); } SoundManager.PlayMusic("menu"); }
public override void Intialize() { base.Intialize(); if (firstRun) { logoEntity = new LogoEntity(ShowMainMenu); } else { ShowMainMenu(); } gameLogo = new Image(OGE.Content.Load<Texture2D>(@"Graphics\Entities\WindowGraphics\CleanEmUpLogo")); gameLogo.CenterOrigin(); gameLogo.OriginX += 50; gameLogo.TintColor = Color.White * currentAlpha; omidosLogo = new Image(OGE.Content.Load<Texture2D>(@"Graphics\Entities\WindowGraphics\Omidos")); omidosLogo.OriginX = omidosLogo.Width; omidosLogo.OriginY = omidosLogo.Height; omidosLogo.TintColor = Color.White * currentAlpha; AddBackground(GlobalVariables.Background); CursorEntity.CursorView = CursorType.Normal; for (int i = 0; i < 15; i++) { VirusEnemy e = new VirusEnemy(); e.Position.X = OGE.Random.Next((int)Dimensions.X); e.Position.Y = OGE.Random.Next((int)Dimensions.Y); viruses.Add(e); AddEntity(e); } SoundManager.PlayMusic("menu"); }