Exemplo n.º 1
0
        public override void LoadContent(ContentManager Content, int WIDTH, int HEIGHT)
        {
            textBlock = Content.Load <SpriteFont>("Fonts/File");
            GraphObject gameMenuBackground = new GraphObject("BACKGROUND", Content.Load <Texture2D>(GameGlobals.TEXTUREBACKGROUND), Vector2.Zero, Color.White, false);

            gameMenuBackground.Scale = 4.0f;
            GraphObject gameMenuTxtBack = new GraphObject("BACK", Content.Load <Texture2D>(GameGlobals.TEXTUREEXIT), Vector2.Zero, Color.Black, true);

            gameMenuTxtBack.Position = new Vector2(WIDTH - (2 * gameMenuTxtBack.Texture.Width), 1 * HEIGHT / 15);
            GraphObject gameMenuTxtStartGame = new GraphObject("START", Content.Load <Texture2D>(GameGlobals.TEXTURESTARTNEWGAME), Vector2.Zero, Color.Black, true);

            gameMenuTxtStartGame.Position = new Vector2(gameMenuTxtStartGame.Texture.Width / 2, 6 * HEIGHT / 7);
            GraphObject gameMenuSendText = new GraphObject("SENDTEXT", Content.Load <Texture2D>(GameGlobals.TEXTURESENDTEXT), Vector2.Zero, Color.Black, true);

            gameMenuSendText.Position  = new Vector2(WIDTH - (2 * gameMenuSendText.Texture.Width), 6 * HEIGHT / 7);
            gameMenuInputForm          = new GraphObject("INPUT", Content.Load <Texture2D>(GameGlobals.TEXTUREINPUTFORM), Vector2.Zero, Color.Black, false);
            gameMenuInputForm.Position = new Vector2(gameMenuInputForm.Texture.Width / 2, 6 * HEIGHT / 7);
            GraphObject gameMenuChat = new GraphObject("CHAT", Content.Load <Texture2D>(GameGlobals.TEXTURECHAT), Vector2.Zero, Color.White, false);

            gameMenuChat.Position = new Vector2(WIDTH / 4, 1 * HEIGHT / 7);
            messagePosition       = gameMenuInputForm.Position;
            chatPosition          = gameMenuChat.Position;
            graphList.Add(gameMenuBackground);
            graphList.Add(gameMenuTxtBack);
            graphList.Add(gameMenuTxtStartGame);
            graphList.Add(gameMenuInputForm);
            graphList.Add(gameMenuSendText);
            graphList.Add(gameMenuChat);
        }
Exemplo n.º 2
0
        public override void LoadContent(ContentManager Content, int WIDTH, int HEIGHT)
        {
            GameField.getInformation();
            GameField.Initialize();
            GraphObject gameMenuBackground = new GraphObject("BACKGROUND", Content.Load <Texture2D>(GameGlobals.TEXTUREBACKGROUND), Vector2.Zero, Color.White, false);

            gameMenuBackground.Scale = 4.0f;
            GraphObject gameMenuTxtBack = new GraphObject("BACK", Content.Load <Texture2D>(GameGlobals.TEXTUREEXIT), Vector2.Zero, Color.Black, true);

            gameMenuTxtBack.Position = new Vector2(WIDTH - (2 * gameMenuTxtBack.Texture.Width), 1 * HEIGHT / 15);
            LoadCells(Cells, Content, WIDTH, HEIGHT);
            graphList.Add(gameMenuBackground);
            graphList.Add(gameMenuTxtBack);

            var cell = GameField.getFieldCellByName("WinD", Cells);

            GameField.FillCell(1, 1, cell);
        }
Exemplo n.º 3
0
        public override void LoadContent(ContentManager Content, int WIDTH, int HEIGHT)
        {
            GraphObject helpMenuBackground = new GraphObject("BACKGROUND", Content.Load <Texture2D>(GameGlobals.TEXTUREBACKGROUND), Vector2.Zero, Color.White, false);

            helpMenuBackground.Scale = 4.0f;
            GraphObject helpMenuTxtExit = new GraphObject("EXIT", Content.Load <Texture2D>(GameGlobals.TEXTUREEXIT), Vector2.Zero, Color.Black, true);
            GraphObject rulesA          = new GraphObject("RULESA", Content.Load <Texture2D>("Images/menu/rulesA"), Vector2.Zero, Color.White, false);
            GraphObject rulesB          = new GraphObject("RULESB", Content.Load <Texture2D>("Images/menu/rulesB"), Vector2.Zero, Color.White, false);

            rulesA.Scale             = 1.30f;
            rulesB.Scale             = 1.30f;
            rulesA.Position          = new Vector2(0, 0);
            rulesB.Position          = new Vector2(rulesA.Texture.Width * rulesA.Scale, 0);
            helpMenuTxtExit.Position = new Vector2(WIDTH - (2 * helpMenuTxtExit.Texture.Width), 6 * HEIGHT / 7);
            graphList.Add(helpMenuBackground);
            graphList.Add(helpMenuTxtExit);
            graphList.Add(rulesA);
            graphList.Add(rulesB);
        }
Exemplo n.º 4
0
        public override void LoadContent(ContentManager Content, int WIDTH, int HEIGHT)
        {
            GraphObject mainMenuBackground = new GraphObject("BACKGROUND", Content.Load <Texture2D>(GameGlobals.TEXTUREMAINBACKGROUND), Vector2.Zero, Color.White, false);
            GraphObject mainMenuGameName   = new GraphObject("LOGO", Content.Load <Texture2D>(GameGlobals.TEXTURELOGO), Vector2.Zero, Color.White, false);

            mainMenuGameName.Position = new Vector2(WIDTH / 2 - (mainMenuGameName.Texture.Width / 2), 0);
            GraphObject mainMenuTxtStartGame = new GraphObject("START", Content.Load <Texture2D>(GameGlobals.TEXTURENEWGAME), Vector2.Zero, Color.Black, true);

            mainMenuTxtStartGame.Position = new Vector2(WIDTH / 2 - (mainMenuTxtStartGame.Texture.Width / 2), 2 * HEIGHT / 7);
            GraphObject mainMenuTxtHelp = new GraphObject("HELP", Content.Load <Texture2D>(GameGlobals.TEXTUREHELP), Vector2.Zero, Color.Black, true);

            mainMenuTxtHelp.Position = new Vector2(WIDTH / 2 - (mainMenuTxtHelp.Texture.Width / 2), 4 * HEIGHT / 7);
            GraphObject mainMenuTxtExit = new GraphObject("EXIT", Content.Load <Texture2D>(GameGlobals.TEXTUREEXIT), Vector2.Zero, Color.Black, true);

            mainMenuTxtExit.Position = new Vector2(WIDTH / 2 - (mainMenuTxtExit.Texture.Width / 2), 6 * HEIGHT / 7);
            graphList.Add(mainMenuBackground);
            graphList.Add(mainMenuGameName);
            graphList.Add(mainMenuTxtStartGame);
            graphList.Add(mainMenuTxtHelp);
            graphList.Add(mainMenuTxtExit);
        }
Exemplo n.º 5
0
        public override void LoadContent(ContentManager Content, int WIDTH, int HEIGHT)
        {
            textBlock = Content.Load <SpriteFont>("Fonts/File");
            GraphObject gameMenuBackground = new GraphObject("BACKGROUND", Content.Load <Texture2D>(GameGlobals.TEXTUREBACKGROUND), Vector2.Zero, Color.White, false);

            gameMenuBackground.Scale = 4.0f;
            GraphObject gameMenuTxtBack = new GraphObject("BACK", Content.Load <Texture2D>(GameGlobals.TEXTUREEXIT), Vector2.Zero, Color.Black, true);

            gameMenuTxtBack.Position = new Vector2(WIDTH - (2 * gameMenuTxtBack.Texture.Width), 6 * HEIGHT / 7);
            GraphObject gameMenuTxtNewServer = new GraphObject("SERVER", Content.Load <Texture2D>(GameGlobals.TEXTURENEWSERVER), Vector2.Zero, Color.Black, true);

            gameMenuTxtNewServer.Position = new Vector2(WIDTH / 2 - (gameMenuTxtNewServer.Texture.Width / 2), 3 * HEIGHT / 7);
            GraphObject gameMenuTxtJoinGame = new GraphObject("JOIN", Content.Load <Texture2D>(GameGlobals.TEXTUREJOIN), Vector2.Zero, Color.Black, true);

            gameMenuTxtJoinGame.Position = new Vector2(WIDTH / 2 - (gameMenuTxtJoinGame.Texture.Width / 2), 5 * HEIGHT / 7);
            gameMenuInputForm            = new GraphObject("INPUT", Content.Load <Texture2D>(GameGlobals.TEXTUREINPUTFORM), Vector2.Zero, Color.Black, false);
            gameMenuInputForm.Position   = new Vector2(gameMenuInputForm.Texture.Width / 2, 2 * HEIGHT / 7);
            textPosition = gameMenuInputForm.Position;
            graphList.Add(gameMenuBackground);
            graphList.Add(gameMenuTxtBack);
            graphList.Add(gameMenuTxtJoinGame);
            graphList.Add(gameMenuTxtNewServer);
            graphList.Add(gameMenuInputForm);
        }