Beispiel #1
0
 protected override void LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     ecraInicial = Content.Load <Texture2D>("StartScreen");
     scene       = new Cena(spriteBatch);
     scene.AddSprite(new Player(Content, "TimComplete", this));
     scene.AddSprite(new Alunos(Content, "student1", new Vector2(-28f, -10.1f)));
     scene.AddSprite(new Alunos(Content, "student2", new Vector2(-1f, -16.25f)));
     scene.AddSprite(new Alunos(Content, "student3", new Vector2(-16f, 1.18f)));
     scene.AddSprite(new Plataformas(Content));
     scene.AddSprite(new Inimigo(Content, "TEST-F", new Vector2(-70f, -12.76f), 1.5f, true, this));
     scene.AddSprite(new Inimigo(Content, "TEST-F", new Vector2(-83f, -15.76f), 1.5f, true, this));
     scene.AddSprite(new Inimigo(Content, "TEST-F", new Vector2(-38f, -15.76f), 1.5f, true, this));
     scene.AddSprite(new Inimigo(Content, "TEST-F", new Vector2(-21f, -10.91f), 1.5f, true, this));
     scene.AddSprite(new Inimigo(Content, "TEST-F", new Vector2(-25f, -9.9f), 1.5f, true, this));
     scene.AddSprite(new Inimigo(Content, "TEST-F", new Vector2(-9f, -11.88f), 1.5f, true, this));
     scene.AddSprite(new Inimigo(Content, "TEST-F", new Vector2(0f, -12.9f), 1.5f, true, this));
     scene.AddSprite(new Inimigo(Content, "TEST-F", new Vector2(3f, -16.05f), 1.5f, true, this));
     scene.AddSprite(new Inimigo(Content, "TEST-F", new Vector2(7f, -5.18f), 1.5f, true, this));
     scene.AddSprite(new Inimigo(Content, "TEST-F", new Vector2(0.35f, -1.79f), 1.5f, true, this));
     scene.AddSprite(new Inimigo(Content, "TEST-F", new Vector2(1f, -9.13f), 1.5f, true, this));
     scene.AddSprite(new Inimigo(Content, "TEST-F", new Vector2(-23f, 1.32f), 1.5f, true, this));
     scene.AddSprite(new Inimigo(Content, "TEST-F", new Vector2(-10f, 1.32f), 1.5f, true, this));
     //SlidingBackground sand = new SlidingBackground(Content, "city");
     //scene.AddBackground(sand);
 }
 public virtual void SetScene(Cena s)
 {
     this.scene = s;
 }
Beispiel #3
0
 public void SetScene(Cena scene)
 {
     this.scene = scene;
 }