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; }
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); }