Example #1
0
 public void Render(Graphics g, Gamestate gs)
 {
     // Clear the screen
     ClearScreen(g);
     // Draw the score
     DrawScore(g, gs.Score, gs.HighScore);
     // Draw number of lives
     DrawLives(g, gs.Lives, gs.Map.Size.Height * m_blockSize);
     // Draw the map
     DrawMap(g, gs.Map);
     // Draw the pills
     // Draw pacman
     // Draw the baddies
 }
Example #2
0
        public Form1()
        {
            // Initialize the window
            InitializeComponent();

            // Initialize the Game State
            gs = new Gamestate();
            gs.Map = MapLoader.Load("maps/level1.txt");
            gs.HighScore = 10000;
            gs.Lives = 3;

            // Initialize the renderer
            rend = new Renderer();
            rend.Init(Font);
        }