Esempio n. 1
0
 public MainMenuScreen(PokemonCardGame game)
 {
     currentGame     = game;
     content         = new ContentManager(currentGame.Services, "Content");
     BackgroundAsset = "MainMenu";
     ScreenTitle     = TITLE_MAINMENU;
     ScreenLevel     = 0;
     //System.Diagnostics.Debug.WriteLine(currentGame.Window.ClientBounds.Width + ", " + currentGame.Window.ClientBounds.Height);
     LayoutManager = new FluidLayoutContainer(new Rectangle(0, 0, GameConstants.SCREEN_WIDTH, GameConstants.SCREEN_HEIGHT),
                                              Edge.Left, 25);
 }
Esempio n. 2
0
        public ServerOptionsScreen(PokemonCardGame game)
        {
            currentGame     = game;
            content         = new ContentManager(currentGame.Services, "Content");
            BackgroundAsset = "MainMenu";
            ScreenTitle     = TITLE_SERVEROPTIONS;
            ScreenLevel     = 0;

            LayoutManager = new FluidLayoutContainer(new Rectangle(0, 0, GameConstants.SCREEN_WIDTH, GameConstants.SCREEN_HEIGHT),
                                                     Edge.Top, 25);
            TestButtons = new Button[6];
        }
Esempio n. 3
0
        public NowPlayingScreen(PokemonCardGame game)
        {
            currentGame  = game;
            content      = new ContentManager(currentGame.Services, "Content");
            intermediary = new ClientIntermediary(game);
            // HACK endpoint should be loaded in ini/xml
            serverEndpoint = new IPEndPoint(new IPAddress(GameConstants.SERVER_IP), GameConstants.SERVER_PORT);

            BackgroundAsset = "GameMat";
            ScreenTitle     = TITLE_GAMEPLAY;
            ScreenLevel     = 2;

            LayoutManager = new FluidLayoutContainer(new Rectangle(0, 0, GameConstants.SCREEN_WIDTH, GameConstants.SCREEN_HEIGHT),
                                                     Edge.Top, 50);
            TestButton = new Button(currentGame, position: new Rectangle(0, 0, 150, 75), colorOverlay: Color.Black, label: "Action", labelColor: Color.White);
        }