SetStartingPosition() public method

public SetStartingPosition ( Point start ) : void
start Point
return void
Example #1
0
        private void ResetGame()
        {
            ClearScreen();
            currentScore = 0;
            DrawScore(currentScore);
            DrawGameBorder();
            player          = new Player();
            player.Position = new Microsoft.Xna.Framework.Point(18, 18);
            player.SetStartingPosition(player.Position);
            SetGlyph(player.Position.X, player.Position.Y, 1, Color.Black, Color.DarkSeaGreen);

            CreateRandomWaferLocation();
            SetGlyph(wafer.X, wafer.Y, 249, Color.Black, Color.DarkSeaGreen);

            gameState = GameState.Running;
        }
Example #2
0
        private void ResetGame()
        {
            ClearScreen();
            currentScore = 0;
            DrawScore(currentScore);
            DrawGameBorder();
            player = new Player();
            player.Position = new Microsoft.Xna.Framework.Point(18, 18);
            player.SetStartingPosition(player.Position);
            SetGlyph(player.Position.X, player.Position.Y, 1, Color.Black, Color.DarkSeaGreen);

            CreateRandomWaferLocation();
            SetGlyph(wafer.X, wafer.Y, 249, Color.Black, Color.DarkSeaGreen);

            gameState = GameState.Running;
        }