コード例 #1
0
ファイル: Server.cs プロジェクト: CrimsonChris/Half-Caked
 public static void SendHighScores(int guid, Statistics stats)
 {
     try
     {
         PostAndReceive("updateScore.php","uid=" + guid + "&level=" + stats.Level + "&score=" + stats.Score);
     }
     catch { }
 }
コード例 #2
0
ファイル: Server.cs プロジェクト: bigmatt0211/Half-Caked
 public static void SendHighScores(Guid g, Statistics stats)
 {
     try
     {
         PostAndReceive(g.ToString() + "," + stats.Level + "," + stats.Score);
     }
     catch { }
 }
コード例 #3
0
ファイル: Level.cs プロジェクト: dweinberg/Half-Caked
 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
ファイル: Level.cs プロジェクト: CrimsonChris/Half-Caked
        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
ファイル: Level.cs プロジェクト: dweinberg/Half-Caked
        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
ファイル: Level.cs プロジェクト: CrimsonChris/Half-Caked
        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;
        }