Ejemplo n.º 1
0
 //Draws screen prompts and messages
 public void Draw( SpriteBatch theSpriteBatch, Player player )
 {
     //Score
     theSpriteBatch.DrawString ( _lucidaConsole, "Score: " + player.GetPoints ( ).ToString ( ), new Vector2 ( 10, 10 ), Color.White );
     //Location
     theSpriteBatch.DrawString ( _lucidaConsole, "X: " + ( int ) player.ship.localPosition.X, new Vector2 ( 10, 30 ), Color.White );
     theSpriteBatch.DrawString ( _lucidaConsole, "Y: " + ( int ) player.ship.localPosition.Y, new Vector2 ( 10, 50 ), Color.White );
 }
Ejemplo n.º 2
0
        public void SendPlayerAddPoints( Player player )
        {
            NetOutgoingMessage outmsg = _server.CreateMessage ( );

            outmsg = WriteMessageHeaders ( outmsg, NetMessageDataTypes.PlayerAddPoints, player.playerNumber );
            outmsg.Write ( player.GetPoints ( ) );

            TrySendMessage ( outmsg );
        }