예제 #1
0
 public static void SendHighScores(int guid, Statistics stats)
 {
     try
     {
         PostAndReceive("updateScore.php","uid=" + guid + "&level=" + stats.Level + "&score=" + stats.Score);
     }
     catch { }
 }
예제 #2
0
 public static void SendHighScores(Guid g, Statistics stats)
 {
     try
     {
         PostAndReceive(g.ToString() + "," + stats.Level + "," + stats.Score);
     }
     catch { }
 }
예제 #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();
 }
예제 #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();
        }
예제 #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;
        }
예제 #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;
        }