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