public Scene2(BasicFile the_file) : base(the_file) { BasicSprite.SetBoundaries(new Viewport(new Rectangle(0, 0, width, height))); the_enemies.Add(new Enemy(false, 1.5)); the_enemies.Add(new Enemy(false, 1.5)); the_enemies.Add(new Enemy(false, 1.5)); the_enemies.Add(new Enemy(false, 1.5)); the_enemies.Add(new Enemy(false, 1.5)); the_enemies.Add(new Enemy(true, 2)); the_enemies.Add(new Enemy(true, 2)); the_enemies.Add(new Enemy(false, 1.5)); the_enemies.Add(new Enemy(false, 1.5)); the_enemies.Add(new Enemy(false, 1.5)); the_enemies.Add(new Enemy(false, 1.5)); the_enemies.Add(new Enemy(true, 2.5)); the_enemies.Add(new Enemy(true, 2.5)); the_enemies.Add(new Enemy(true, 2.5)); the_enemies.Add(new Enemy(false, 1.5)); the_enemies.Add(new Enemy(false, 1.5)); the_enemies.Add(new Enemy(false, 1.5)); the_enemies.Add(new Enemy(false, 1.5)); the_boxes.Add(new Box(new Rectangle(1702, 390, 90, 90), Color.SaddleBrown)); the_boxes.Add(new Box(new Rectangle(1702, 500, 90, 90), Color.SaddleBrown)); the_boxes.Add(new Box(new Rectangle(292, 808, 90, 90), Color.SaddleBrown)); the_boxes.Add(new Box(new Rectangle(292, 908, 90, 90), Color.SaddleBrown)); }
public Scene(BasicFile the_file) { this.the_file = the_file; levelIndicator = new Label(new Vector2(viewport.Width - 100, 0)); AnimatedCharacter.SetBoxes(the_boxes); AnimatedCharacter.SetEnemies(the_enemies); the_hero = new Hero(Keys.Left, Keys.Right, Keys.Up, Keys.Down); the_cam = new Camera(new Rectangle(0, 0, viewport.Width, viewport.Height)); the_hud = new HUD(Vector2.Zero, 0); the_map = new BasicMap(viewport, Color.White); AnimatedCharacter.SetMap(the_map); the_key.Add(new Llaves(new Rectangle(10, 10, 60, 60), Color.White));///left box completed = false; lost = false; }
public Scene3(BasicFile the_file) : base(the_file) { int widthSectionSize = width / 9; the_buttons.Add(new Button(new Rectangle(widthSectionSize - buttonWidth / 2, 0, buttonWidth, buttonHeight))); the_buttons.Add(new Button(new Rectangle(widthSectionSize - buttonWidth / 2, height / 2 - buttonHeight / 2, buttonWidth, buttonHeight))); the_buttons.Add(new Button(new Rectangle(widthSectionSize - buttonWidth / 2, height - buttonHeight, buttonWidth, buttonHeight))); the_buttons.Add(new Button(new Rectangle(widthSectionSize * 3 - buttonWidth / 2, 0, buttonWidth, buttonHeight))); the_buttons.Add(new Button(new Rectangle(widthSectionSize * 3 - buttonWidth / 2, height / 2 - buttonHeight / 2, buttonWidth, buttonHeight))); the_buttons.Add(new Button(new Rectangle(widthSectionSize * 3 - buttonWidth / 2, height - buttonHeight, buttonWidth, buttonHeight))); the_buttons.Add(new Button(new Rectangle(widthSectionSize * 5 - buttonWidth / 2, 0, buttonWidth, buttonHeight))); the_buttons.Add(new Button(new Rectangle(widthSectionSize * 5 - buttonWidth / 2, height / 2 - buttonHeight / 2, buttonWidth, buttonHeight))); the_buttons.Add(new Button(new Rectangle(widthSectionSize * 5 - buttonWidth / 2, height - buttonHeight, buttonWidth, buttonHeight))); the_buttons.Add(new Button(new Rectangle(widthSectionSize * 7 - buttonWidth / 2, 0, buttonWidth, buttonHeight))); the_buttons.Add(new Button(new Rectangle(widthSectionSize * 7 - buttonWidth / 2, height / 2 - buttonHeight / 2, buttonWidth, buttonHeight))); the_buttons.Add(new Button(new Rectangle(widthSectionSize * 7 - buttonWidth / 2, height - buttonHeight, buttonWidth, buttonHeight))); BasicSprite.SetBoundaries(new Viewport(new Rectangle(0, 0, 2100, 1620))); }
public Scene1(BasicFile the_file) : base(the_file) { the_enemies.Add(new Enemy(true, 2.5)); the_enemies.Add(new Enemy(false, 2.5)); the_enemies.Add(new Enemy(true, 2.5)); the_enemies.Add(new Enemy(false, 2.5)); the_enemies.Add(new Enemy(true, 2.5)); the_enemies.Add(new Enemy(false, 2.5)); the_enemies.Add(new Enemy(true, 2.5)); the_enemies.Add(new Enemy(false, 2.5)); the_enemies.Add(new Enemy(true, 2.5)); the_enemies.Add(new Enemy(false, 2.5)); the_boxes.Add(new Box(new Rectangle(100, 300, boxSide, boxSide), Color.White)); ///left box the_boxes.Add(new Box(new Rectangle(1900, 300, boxSide, boxSide), Color.White)); ///right box the_boxes.Add(new Box(new Rectangle(900, 100, boxSide, boxSide), Color.White)); ///up box the_boxes.Add(new Box(new Rectangle(900, 1500, boxSide, boxSide), Color.White)); ///down box BasicSprite.SetBoundaries(new Viewport(new Rectangle(0, 0, 2100, 1620))); }
public BasicMenu(BasicFile the_file) { this.the_file = the_file; background = new BasicSprite(new Rectangle(Scene.GetViewport().X,Scene.GetViewport().Y,Scene.GetViewport().Width,Scene.GetViewport().Height), Color.White); }
public GameOver(BasicFile the_file) : base(the_file) { }
public Menu(BasicFile the_file) : base(the_file) { }