Esempio n. 1
0
        private void init(int direccion, bool tipo, Model graphA, disps str, float veloc, Vector2 posicion)
        {
            disps aux = str;
            dir = direccion;
            tip = tipo;
            graph = new modelo(graphA);
            Mstruct = new disps();
            Mstruct.elem = this;
            while (aux.sig != null)
                aux = aux.sig;
            aux.sig = Mstruct;
            Mstruct.ant = aux;

            vel = veloc;
            pos = posicion;
            box = new caja(new Vector3(pos.X - 10f, pos.Y - 10f, -10f), new Vector3(pos.X + 10f, pos.Y + 10f, +10f));
        }
Esempio n. 2
0
 public disparo(int direccion, bool tipo, Model graphA, disps str, float veloc, Vector2 posicion, float pl_ang)
 {
     init(direccion, tipo, graphA, str, veloc, posicion);
     angle_p = pl_ang;
 }
Esempio n. 3
0
 private void init()
 {
     d_lis = new disps();
     scroll = Content.Load<Texture2D>("graphics/sc" + nivel);
     naveP = new Prota(g_nave, g_disp);
     naveP.set_pos(-150, 0);
     scrollP = new Vector2(0);
     ind = 0;
     objeto=null;
     contad = 0;
     efecto = -1;
     salvado = false;
     ener = 100;
     record = 0;
     max_record = EO.load(StorageContainer.TitleLocation + "/Content/datos/datos.txt");
     View = Matrix.CreateLookAt(cameraPosition, Vector3.Zero, Vector3.Down);
     for (int z = 0; z < totalEnem; z++)
         enemigos[z] = null;
 }