示例#1
0
        public WinScreen(PassObject ChangeGameState)
        {
            changeGameState = ChangeGameState;

            bkg = new Basic2D("2D/Menu/YouWin", new Vector2(Globals.screenWidth / 2, Globals.screenHeight / 2), new Vector2(Globals.screenWidth, Globals.screenHeight));

            menuButton = new Button2D("2D/Menu/Button", new Vector2(0, 0), new Vector2(180, 60), "Fonts/Arial12", "Menu", changeGameState, 0);
        }
示例#2
0
        public MainMenu(PassObject PlayClick, PassObject ExitClick)
        {
            playClick = PlayClick;
            exitClick = ExitClick;

            bkg = new Basic2D("2D/Menu/Background", new Vector2(Globals.screenWidth / 2, Globals.screenHeight / 2), new Vector2(Globals.screenWidth, Globals.screenHeight));

            buttons.Add(new Button2D("2D/Menu/Button", new Vector2(0, 0), new Vector2(120, 30), "Fonts/Arial12", "Play", playClick, 1));
            buttons.Add(new Button2D("2D/Menu/Button", new Vector2(0, 0), new Vector2(120, 30), "Fonts/Arial12", "Exit", exitClick, 0));
        }
示例#3
0
 public void MapDecoder()
 {
     for (int i = 0; i < 10; i++)
     {
         for (int j = 0; j < 10; j++)
         {
             tiles[i, j] = new Basic2D(TexturePaths[map[i, j]], new Vector2(i * 64, j * 64), new Vector2(64, 64));
         }
     }
 }
示例#4
0
 public Hero(string Path, Vector2 Pos, Vector2 Dems) : base(Path, Pos, Dems)
 {
     blinder = new Basic2D("2D/Blinder", pos, new Vector2(Globals.screenWidth + 100, Globals.screenHeight + 100));
     speed   = 2.0f;
 }