コード例 #1
0
ファイル: Menu.cs プロジェクト: 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;
 }
コード例 #2
0
ファイル: LiveThing.cs プロジェクト: rango84/Run
 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;
 }
コード例 #3
0
ファイル: Thing.cs プロジェクト: 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>();
 }
コード例 #4
0
ファイル: FontSprite.cs プロジェクト: rango84/Run
 public FontSprite(string fontName)
 {
     myAnim = new AnimationFlyWeight(fontName);
 }
コード例 #5
0
ファイル: Game.cs プロジェクト: 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);
        }