public void AddGameMessage(string message, Color color, float lifeTime) { AODText t = AODText.CreateText(message, lifeTime, color, MessagePosition, this, FadeOutState.Normal); t.centerize = false; GameMessageBox.AddText(t); GameMessageBox.Visible = true; //MessagesInLine.Add(AODText.CreateText(message, lifeTime, color, MessagePosition, this,FadeOutState.Normal)); }
/// <summary> /// 初始化 /// </summary> public override void Initialize() { Stage.PlayMusic(@"Audio\Antti_Martikainen_-_The_Chase", true, 10); /* * Stage.AddGameMessage(@"Vector: 该死!盖亚号受到不明来源EMP导弹攻击!", Color.CornflowerBlue, 4); * Stage.AddGameMessage(@"Vector: 恢复盖亚号正常运作需要一些时间,全体人员,保护盖亚号!", Color.CornflowerBlue, 4); * Stage.AddGameMessage(@"Vector: 杰诺,同时注意你自己的战机,“遗迹”不能受到损伤!", Color.CornflowerBlue, 4); * Stage.AddGameMessage(@"Bill: 杰诺交给我和第三舰队来照应,威克多。", Color.CornflowerBlue, 2); * Stage.AddGameMessage(@"Vector: 很好,盖亚号一旦重新醒来,加上“遗迹”的能量,秩序之眼的统治——", Color.CornflowerBlue, 4); * Stage.AddGameMessage(@"Vector: ——就可以永远结束!", Color.CornflowerBlue, 4); * Stage.AddGameMessage(@"Alicia: 杰诺,现在只有你能听见我的话。", Color.Yellow, 4); * Stage.AddGameMessage(@"Alicia: 我必须告诉你——", Color.Yellow, 4); * Stage.AddGameMessage(@"Alicia: ……啊——可……恶……", Color.Yellow, 4); * Stage.AddGameMessage(@"Alicia: ……对不起……", Color.Yellow, 4); * Stage.AddGameMessage(@"Alicia: ……我……现在……不能和你联系……杰诺……", Color.Yellow, 4); * Stage.AddGameMessage(@"Alicia: ……只有你……能让一切终结……", Color.Yellow, 4); */ Stage.AddGameMessage(@"Vector: Damn! Gaia is under EMP attack!", Color.CornflowerBlue, 4); Stage.AddGameMessage(@"Vector: We need time to bring it back online!", Color.CornflowerBlue, 4); Stage.AddGameMessage(@"Vector: Everyone, protect Gaia!", Color.CornflowerBlue, 4); Stage.AddGameMessage(@"Bill: I will take care of Zero and the 3rd Fleet.", Color.CornflowerBlue, 2); Stage.AddGameMessage(@"Vector: Good, once Gaia ia back, we can push to the heart of the Eye", Color.CornflowerBlue, 4); Stage.AddGameMessage(@"Vector: - And use the Relic to end the war, once and for all.", Color.CornflowerBlue, 4); Stage.AddGameMessage(@"Alicia: Zero, now only you can hear me.", Color.Yellow, 4); Stage.AddGameMessage(@"Alicia: I must tell you -", Color.Yellow, 4); Stage.AddGameMessage(@"Alicia: ...Ahhhhhhh...Dam....", Color.Yellow, 4); Stage.AddGameMessage(@"Alicia: ...Sorry...", Color.Yellow, 4); Stage.AddGameMessage(@"Alicia: ...I cannot... for now...", Color.Yellow, 4); Stage.AddGameMessage(@"Alicia: ...Only you... can...", Color.Yellow, 4); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\ShadowSlainMK2"), 2, new Vector3(10, 3000, -3000)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\ShadowSlainMK2"), 2, new Vector3(10, 3000, -3000)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\ShadowSlainMK2"), 2, new Vector3(10, 3000, -3000)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\FlameDestroyerMK2"), 2, new Vector3(10, 3000, -3000)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\FlameDestroyerMK2"), 2, new Vector3(10, 3000, -3000)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\FlameDestroyerMK2"), 2, new Vector3(10, 3000, -3000)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\FlameDestroyerMK2"), 2, new Vector3(10, 3000, -3000)); victory = Stage.CreateTimer(600); time = new AODText(Stage.GameWorld, "", 0, Color.White, new Vector2(Stage.GameWorld.game.GraphicsDevice.Viewport.Width / 2, 130), FadeOutState.None, Vector2.Zero, true); Stage.GameWorld.InstantMessages.Add(time); spawn = Stage.CreateTimer(20); phase2 = Stage.CreateTimer(120); phase3 = Stage.CreateTimer(240); phase4 = Stage.CreateTimer(480); base.Initialize(); }
/// <summary> /// 初始化 /// </summary> public override void Initialize() { Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSMa"), 2, new Vector3(200, 5200, 0)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSMa"), 2, new Vector3(-200, 5200, 0)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSMa"), 2, new Vector3(200, 2600, 4498)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSMa"), 2, new Vector3(-200, 2600, 4498)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSSh"), 2, new Vector3(200, 2600, -4498)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSMa"), 2, new Vector3(-200, 2600, -4498)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSMi"), 2, new Vector3(200, -2600, 4498)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSMa"), 2, new Vector3(-200, -2600, 4498)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSSh"), 2, new Vector3(200, -2600, -4498)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSMi"), 2, new Vector3(-200, -2600, -4498)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSMi"), 2, new Vector3(200, -5200, 0)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSMi"), 2, new Vector3(-200, -5200, 0)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSMa"), 2, new Vector3(200, 0, 5000)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSMa"), 2, new Vector3(-200, 0, 5000)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSSh"), 2, new Vector3(200, 0, -5000)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\EOSSh"), 2, new Vector3(-200, 0, -5000)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\PowerShield"), 2, new Vector3(0, 5200, 0)); shields.Add(Variables.LastCreatedUnit); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\PowerShield"), 2, new Vector3(0, -5200, 0)); shields.Add(Variables.LastCreatedUnit); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\PowerShield"), 2, new Vector3(0, 2600, 4498)); shields.Add(Variables.LastCreatedUnit); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\PowerShield"), 2, new Vector3(0, 2600, -4498)); shields.Add(Variables.LastCreatedUnit); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\PowerShield"), 2, new Vector3(0, -2600, 4498)); shields.Add(Variables.LastCreatedUnit); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\PowerShield"), 2, new Vector3(0, -2600, -4498)); shields.Add(Variables.LastCreatedUnit); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\Falcon2"), 1, new Vector3(0, 20000, 0)); Variables.LastCreatedUnit.IsInvincible = true; Variables.LastCreatedUnit.RiderName = "Price Jeffsion <3rd Fleet Commander>"; Variables.Unit[3] = Variables.LastCreatedUnit; Variables.LastCreatedUnit.MoveTo(new Vector3(0, 6000, 0)); Stage.CreateNPCUnit(Content.Load <UnitType>(@"UnitTypes\Falcon3"), 1, new Vector3(0, 20000, 0)); Variables.LastCreatedUnit.IsInvincible = true; Variables.LastCreatedUnit.RiderName = "Maria Woodwind <3rd Fleet>"; Variables.Unit[4] = Variables.LastCreatedUnit; Variables.LastCreatedUnit.SetAI(new AODGameLibrary2.AssistAI(((RegularAI)Variables.LastCreatedUnit.unitAI).settings, Variables.Unit[3])); te = new AODText(Stage.GameWorld, "", 0, Color.White, new Vector2(Stage.GameWorld.game.GraphicsDevice.Viewport.Width / 2, 130), FadeOutState.None, Vector2.Zero, true); Stage.GameWorld.InstantMessages.Add(te); te.Text = "Field Generator Destroyed: " + (6 - n) + "/" + "6"; Stage.PlayMusic(@"Audio\Marcello_Morgese_-_Sounds_Of_The_Night", true, 4); base.Initialize(); }
public void ShowInstantMessage(string message, Vector2 position, Vector2 velocity, Color color, float lifeTime) { InstantMessages.Add(AODText.CreateText(message, lifeTime, color, position, this, FadeOutState.Normal, velocity)); }
public void ShowTooltipMessage(string message, Color color, float lifeTime) { TooltipMessagesInLine.Add(AODText.CreateText(message, lifeTime, color, TooltipMessagePosition, this, FadeOutState.Normal)); }
public void AddRealtimeGameMessage(string message, Color color, float lifeTime) { MessagesInLine.Add(AODText.CreateText(message, lifeTime, color, MessagePosition, this, FadeOutState.Normal)); }
public void AddFlyingMessage(String message, Color color) { FlyingMessagesInLine.Add(AODText.CreateText(message, 15.5f, color, new Vector2((float)game.GraphicsDevice.Viewport.Width / 2, game.GraphicsDevice.Viewport.Height + 15), this, FadeOutState.None, new Vector2(0, -(float)game.GraphicsDevice.Viewport.Height / 15))); }
public void AddText(AODText t) { Text.Add(t); }