Example #1
0
File: Menu.cs Project: rango84/Run
 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;
 }
Example #2
0
 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;
 }
Example #3
0
File: Thing.cs Project: rango84/Run
 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>();
 }
Example #4
0
 public FontSprite(string fontName)
 {
     myAnim = new AnimationFlyWeight(fontName);
 }
Example #5
0
File: Game.cs Project: rango84/Run
        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);
        }