Ejemplo n.º 1
0
 static public void Start(Game game)
 {
     listPlat = new List<Plataform>();
     Plataform plat = new Plataform(new Vector2(350, 80), game.Content.Load<Texture2D>("BlocoPlataforma"), Vector2.One, Speed);
     listPlat.Add(plat);
     listPlat[0].contador = -900;
 }
Ejemplo n.º 2
0
        static public void CreatePlataforms(Game game)
        {
            Vector2 pos;
          

            Plataform plat = new Plataform(new Vector2(rand.Next(750), -30), game.Content.Load<Texture2D>("BlocoPlataforma"),Vector2.One, Speed);
            listPlat.Add(plat);
        }