public Menu(String backName,Color backColor,Vector2 position,Vector2 dimesions) { Controls = new Dictionary<string, MenuControl>(); if (backName != "") { BackGround = new AnimationFlyWeight(backName); } else { BackGround = new AnimationFlyWeight("Rectangle"); } Position = position; Dimensions = dimesions; Selection = 0; BeginDestination = position; EndDestination = position; Active = false; selected = false; BackColor = backColor; }
public virtual void Initialize(string spriteName, Vector2 pos, int mid) { myAnimationFlyWeight = new AnimationFlyWeight(spriteName); position = pos; depth = 1.0f; time = 1.0f; Action = "stand"; stringDirection = "Right"; MyID = mid; effect = SpriteEffects.None; }
public virtual void Initialize(string spriteName, Vector2 pos, int mid) { myAnimationFlyWeight = new AnimationFlyWeight(spriteName); position = pos; depth = 1.0f; MyID = mid; effect = SpriteEffects.None; Emitters = new List<ParticleEmitter>(); }
public FontSprite(string fontName) { myAnim = new AnimationFlyWeight(fontName); }
public static void Initialize() { CurrentMenu = "Start"; Bars = new AnimationFlyWeight("Bars"); levels = new List<Level>(); DeadDisplay = false; pause = false; Difficulties = new List<string>(); Difficulties.Add("My Little Apocalypse"); Difficulties.Add("Doomsday"); Difficulties.Add("Seas will boil, Stars will fall in dispare"); Difficulties.Add("A booming voice will speak the words to end existence"); Difficulty = 1; Building.LoadPatterns(); //Camera.shake(100000, 500.0f, 0.01f); }