Esempio n. 1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            bola        = new Bola(Content);
            jugador     = new Paleta(Content);
            mandar      = new Thread(new ThreadStart(mandacion));
            mandar.Start();

            // TODO: use this.Content to load your game content here
        }
Esempio n. 2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            bola    = new Bola(Content);
            jugador = new Paleta(Content);
            mandar  = new Thread(new ThreadStart(mandacion));
            mandar.Start();
            serialport = new SerialPort();
            font       = Content.Load <SpriteFont>("Fonts\\Fuente");
            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\\HyperspaceBonusLeft");


            recibioPlay = false;
            background  = Content.Load <Texture2D>("Sprites\\bgLeft");
            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
        }
Esempio n. 3
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     spriteBatch = new SpriteBatch(GraphicsDevice);
     bola = new Bola(Content);
     jugador = new Paleta(Content);
     mandar = new Thread(new ThreadStart(mandacion));
     mandar.Start();
     
     // TODO: use this.Content to load your game content here
 }
Esempio n. 4
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            bola = new Bola(Content);
            jugador = new Paleta(Content);
            mandar = new Thread(new ThreadStart(mandacion));
            mandar.Start();
            serialport = new SerialPort();
            font = Content.Load<SpriteFont>("Fonts\\Fuente");
            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\\HyperspaceBonusLeft");

            
            recibioPlay = false;
            background = Content.Load<Texture2D>("Sprites\\bgLeft");
            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
        }