Beispiel #1
0
        protected override void LoadContent()
        {
            serv = new Server("192.168.52.56", 8888);
            serv.comenzarServidor();

            eso = new Thread(new ThreadStart(dat));
            eso.Start();

            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            cursor = new Cursor(Content);
            cursor2 = new Cursor(Content);


            // TODO: use this.Content to load your game content here
        }
Beispiel #2
0
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            j1 = new Paleta(Content);
            j2 = new Paleta(Content);
            bola = new Bola(Content);
            
            server = new Server("192.168.52.27", 8888);
            server.comenzarServidor();

            conversacion = new Thread(new ThreadStart(envRec));
            conversacion.Start();
            
            

            // TODO: use this.Content to load your game content here
        }
Beispiel #3
0
        protected override void LoadContent()
        {
            playcountS = 0;
            font = Content.Load<SpriteFont>("Fonts\\Fuente");
            puntosC = 0;
            puntosS = 0;
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            j1 = new Paleta(Content);
            j2 = new Paleta(Content);
            bola = new Bola(Content);
            server = new Server("192.168.52.56", 8888);
            server.comenzarServidor();
            conversacion = new Thread(new ThreadStart(envRec));
            conversacion.Start();

            serialport = new SerialPort();
            String portname = "";
            foreach (string name in SerialPort.GetPortNames())
            {
                portname = name;                
            }
            serialport.PortName = portname;
            serialport.BaudRate = 9600;
            serialport.Parity = Parity.None;
            serialport.DataBits = 8;
            serialport.Open();
            serialport.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(serialPortRecibir);

            ConvSerial = new Thread(new ThreadStart(parseSerialData));
            ConvSerial.Start();
            musica = Content.Load<Song>("Sounds\\HyperspaceBonusRight");
            MediaPlayer.IsRepeating = true;

            background = Content.Load<Texture2D>("Sprites\\bgRight");

            cursor = new Cursor[101];
            for (int i = 1; i <= 100; i++)
            {
                cursor[i] = new Cursor(Content);
            }
                     
         

            // TODO: use this.Content to load your game content here
        }