예제 #1
0
        // Update screen
        public void DrawElements()
        {
            Hardware.ClearScreen();

            currentLevel.DrawOnHiddenScreen();
            Hardware.WriteHiddenText("Score: ",
                                     40, 10,
                                     0xCC, 0xCC, 0xCC,
                                     font18);
            player.DrawOnHiddenScreen();
            for (int i = 0; i < numEnemies; i++)
            {
                enemies[i].DrawOnHiddenScreen();
            }
            myShot.DrawOnHiddenScreen();
            Hardware.ShowHiddenScreen();
        }
예제 #2
0
        // Update screen
        public void DrawElements()
        {
            Hardware.ClearScreen();

            currentLevel.DrawOnHiddenScreen();
            Hardware.WriteHiddenText("Score: " + score,
                                     40, 10,
                                     0xCC, 0xCC, 0xCC,
                                     font18);
            Hardware.WriteHiddenText("Life: " + Convert.ToString(player.GetLife()),
                                     260, 10,
                                     0xCC, 0xCC, 0xCC,
                                     font18);
            Hardware.WriteHiddenText("Keys: " + Convert.ToString(player.GetKeys()),
                                     480, 10,
                                     0xCC, 0xCC, 0xCC,
                                     font18);

            player.DrawOnHiddenScreen();
            for (int i = 0; i < enemies.Count; i++)
            {
                enemies[i].DrawOnHiddenScreen();
            }
            for (int i = 0; i < keys.Count; i++)
            {
                keys[i].DrawOnHiddenScreen();
            }
            for (int i = 0; i < doors.Count; i++)
            {
                doors[i].DrawOnHiddenScreen();
            }
            for (int i = 0; i < generators.Count; i++)
            {
                generators[i].DrawOnHiddenScreen();
            }

            myShot.DrawOnHiddenScreen();
            Hardware.ShowHiddenScreen();
        }