Beispiel #1
0
        public void LoadWorld(ContentManager content, string Dir, int Nivel, int CantPuntos)
        {
            FrutiManiac    = false;
            PuntajeGeneral = CantPuntos;
            Board          = new Texture2D[] {
                content.Load <Texture2D>(Dir),
                content.Load <Texture2D>(Dir + "2"),
                content.Load <Texture2D>(Dir + "Power"),
            };
            Frame = 0;

            PosV = new Vector2(100, 50);
            P    = new Punticos(Pos, Board[0], PosV);
            P.Load(content, "Imagenes/Crump", "Imagenes/PowerPill", Nivel);

            Jugador = new Pacman(Pos, Velpacman);
            Jugador.Load(content);
            PosJ                = Jugador.GetPos();
            JugadorVivo         = true;
            JugadorVivoDameTime = true;

            TEX               = new Escrito(content, "Fuentes/SF1");
            Niv               = Nivel;
            TodoCatch         = false;
            TiempoCelebracion = 3.0f;

            Enemigo1 = new Fantasmas(Pos, 8, Color.Red);
            Enemigo2 = new Fantasmas(Pos, 8, Color.Green);
            Enemigo3 = new Fantasmas(Pos, 8, Color.Purple);
            Enemigo4 = new Fantasmas(Pos, 8, Color.Yellow);
            Enemigo1.Load(content, 0.5f + Nivel * 0.03f);
            Enemigo2.Load(content, 0.6f + Nivel * 0.03f);
            Enemigo3.Load(content, 0.7f + Nivel * 0.03f);
            Enemigo4.Load(content, 0.8f + Nivel * 0.03f);
        }
Beispiel #2
0
        public void LoadWorld(ContentManager content, string Dir,int Nivel,int CantPuntos)
        {
            FrutiManiac = false;
            PuntajeGeneral = CantPuntos;
            Board = new Texture2D[] {
                content.Load< Texture2D >(Dir),
                content.Load<Texture2D>(Dir+"2"),
                content.Load<Texture2D>(Dir+"Power"),
            };
            Frame = 0;

            PosV = new Vector2(100, 50);
            P = new Punticos(Pos, Board[0],PosV);
            P.Load(content, "Imagenes/Crump", "Imagenes/PowerPill",Nivel);

            Jugador = new Pacman(Pos,Velpacman);
            Jugador.Load(content);
            PosJ = Jugador.GetPos();
            JugadorVivo = true;
            JugadorVivoDameTime = true;

            TEX = new Escrito(content, "Fuentes/SF1");
            Niv = Nivel;
            TodoCatch = false;
            TiempoCelebracion = 3.0f;

            Enemigo1 = new Fantasmas(Pos, 8, Color.Red);
            Enemigo2 = new Fantasmas(Pos, 8, Color.Green);
            Enemigo3 = new Fantasmas(Pos, 8, Color.Purple);
            Enemigo4 = new Fantasmas(Pos, 8, Color.Yellow);
            Enemigo1.Load(content, 0.5f + Nivel * 0.03f);
            Enemigo2.Load(content, 0.6f + Nivel * 0.03f);
            Enemigo3.Load(content, 0.7f + Nivel * 0.03f);
            Enemigo4.Load(content, 0.8f + Nivel * 0.03f);
        }