Esempio n. 1
0
 public static void SendHighScores(int guid, Statistics stats)
 {
     try
     {
         PostAndReceive("updateScore.php","uid=" + guid + "&level=" + stats.Level + "&score=" + stats.Score);
     }
     catch { }
 }
Esempio n. 2
0
 public static void SendHighScores(Guid g, Statistics stats)
 {
     try
     {
         PostAndReceive(g.ToString() + "," + stats.Level + "," + stats.Score);
     }
     catch { }
 }
Esempio n. 3
0
 public Level()
 {
     LevelStatistics = new Statistics();
     mBackground = new Sprite();
     Obstacles = new List<Obstacle>();
     Actors = new List<Actor>();
     Checkpoints = new List<Checkpoint>();
     mTextEffects = new List<TextEffect>();
     Tiles = new List<Tile>();
     Portals = new PortalGroup();
 }
Esempio n. 4
0
        public Level()
        {
            Gravity = 40f;
            Name = "New Level";

            LevelStatistics = new Statistics();
            mBackground = new Sprite();
            mCakeSprite = new Sprite();
            Obstacles = new List<Obstacle>();
            Actors = new List<Actor>();
            Checkpoints = new List<Checkpoint>();
            mTextEffects = new List<TextEffect>();
            Tiles = new List<Tile>();
            Portals = new PortalGroup();
        }
Esempio n. 5
0
        public override void Reset()
        {
            base.Reset();
            LevelStatistics = new Statistics();

            mBackground.Position = Position;
            Portals.Reset();

            foreach (Obstacle spr in Obstacles)
                spr.Reset();

            Player.Reset();

            foreach (Actor spr in Actors)
                spr.Reset();

            mTextEffects.Clear();
            mCheckpointIndex = 1;
        }
Esempio n. 6
0
        public override void Reset()
        {
            base.Reset();
            Portals.Reset();
            LevelStatistics = new Statistics(mLevelID);

            if(mBackground != null)
                mBackground.Position = Position;

            foreach (Obstacle spr in Obstacles)
                spr.Reset();

            Player.Reset();

            foreach (Actor spr in Actors)
                spr.Reset();

            mCakeAnimator.PlayAnimation(idleCake);
            mTextEffects.Clear();
            mCheckpointIndex = 1;
        }