public IntroRoomObj() { this.m_rainFG = new List<RaindropObj>(); for (int i = 0; i < 500; i++) { RaindropObj item = new RaindropObj(new Vector2((float)CDGMath.RandomInt(-100, 2640), (float)CDGMath.RandomInt(-400, 720))); this.m_rainFG.Add(item); } }
public override void Initialize() { this.m_bossTitle1 = new TextObj(Game.JunicodeFont); this.m_bossTitle1.Text = "The Forsaken"; this.m_bossTitle1.OutlineWidth = 2; this.m_bossTitle1.FontSize = 18f; this.m_bossTitle2 = new TextObj(Game.JunicodeLargeFont); this.m_bossTitle2.Text = "Alexander"; this.m_bossTitle2.OutlineWidth = 2; this.m_bossTitle2.FontSize = 40f; this.m_bossDivider = new SpriteObj("Blank_Sprite"); this.m_bossDivider.OutlineWidth = 2; foreach (DoorObj current in base.DoorList) { this.m_roomFloor = (float)current.Bounds.Bottom; } this.m_bossChest = new ChestObj(null); this.m_bossChest.Position = new Vector2((float)this.Bounds.Center.X - (float)this.m_bossChest.Width / 2f, (float)this.Bounds.Center.Y); base.GameObjList.Add(this.m_bossChest); this.m_rainFG = new List<RaindropObj>(); for (int i = 0; i < 50; i++) { RaindropObj raindropObj = new RaindropObj(new Vector2(CDGMath.RandomFloat(base.X - (float)this.Width, base.X), CDGMath.RandomFloat(base.Y, base.Y + (float)this.Height))); this.m_rainFG.Add(raindropObj); raindropObj.ChangeToParticle(); } base.Initialize(); }