Exemple #1
0
        public Scoreboard(GameController game)
        {
            _game            = game;
            scoreboardHeight = 120;
            //scoreboard
            scoreboardBackground = _game.Content.Load <Texture2D>("scoreboard/blackdot");

            scoreboardTopLeftCornerFrame  = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameLeftTopCorner"), GameController.scale);
            scoreboardTopRightCornerFrame = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameRightTopCorner"), GameController.scale);
            scoreboardBotLeftCornerFrame  = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameLeftBotCorner"), GameController.scale);
            scoreboardBotRightCornerFrame = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameRightBotCorner"), GameController.scale);

            scoreboardLeftConnectorFrame  = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameLeftConnector"), GameController.scale);
            scoreboardRightConnectorFrame = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameRightConnector"), GameController.scale);
            scoreboardTopConnectorFrame   = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameTopConnector"), GameController.scale);
            scoreboardBotConnectorFrame   = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameBotConnector"), GameController.scale);

            bomb       = new _2DTexture(_game.Content.Load <Texture2D>("icon/singleBomb"), 2);
            arrow      = new _2DTexture(_game.Content.Load <Texture2D>("icon/singleArrow"), 1.5f);
            potion     = new _2DTexture(_game.Content.Load <Texture2D>("projectiles/potion"), GameController.scale);
            heart      = new _2DTexture(_game.Content.Load <Texture2D>("icon/heartFULL"), 2.5f);
            heartEmpty = new _2DTexture(_game.Content.Load <Texture2D>("icon/heartEMPTY"), 2.5f);
            rupee      = new _2DTexture(_game.Content.Load <Texture2D>("icon/rupee"), 1.3f);

            font        = _game.Content.Load <SpriteFont>("fonts/font");
            fontSmaller = _game.Content.Load <SpriteFont>("fonts/font12");
        }
        public GameMenu(GameController game)
        {
            _game = game;
                        #if PLAY_SOUND
            selectItem = game.Content.Load <SoundEffect>("sounds/selectOption");
            menuMove   = game.Content.Load <SoundEffect>("sounds/moveCursor");
            menuOpen   = game.Content.Load <SoundEffect>("sounds/menuOpen");
            menuClose  = game.Content.Load <SoundEffect>("sounds/menuClose");
                        #endif
            menuBackground = _game.Content.Load <Texture2D>("scoreboard/blackdot");

            menuTopLeftCornerFrame  = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameLeftTopCorner"), GameController.scale);
            menuTopRightCornerFrame = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameRightTopCorner"), GameController.scale);
            menuBotLeftCornerFrame  = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameLeftBotCorner"), GameController.scale);
            menuBotRightCornerFrame = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameRightBotCorner"), GameController.scale);

            menuLeftConnectorFrame  = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameLeftConnector"), GameController.scale);
            menuRightConnectorFrame = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameRightConnector"), GameController.scale);
            menuTopConnectorFrame   = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameTopConnector"), GameController.scale);
            menuBotConnectorFrame   = new _2DTexture(_game.Content.Load <Texture2D>("scoreboard/frameBotConnector"), GameController.scale);

            font        = _game.Content.Load <SpriteFont>("fonts/font");
            fontSmaller = _game.Content.Load <SpriteFont>("fonts/font12");

            startingTextPosition             = new Vector2(startingX + 115, startingY + 75);
            startingInstructionsTextPosition = new Vector2(startingX + 25, startingY + 350);
        }
Exemple #3
0
 public GameEnvironment(GameController game)
 {
     _game           = game;
     background      = new _2DTexture(game.Content.Load <Texture2D>("map/ground"), GameController.scale);
     cornerWallBlock = new _2DTexture(game.Content.Load <Texture2D>("map/cornerBlockBot"), GameController.scale);
     HorWallTile     = new _2DTexture(game.Content.Load <Texture2D>("map/wall-H"), GameController.scale);
     VertWallTile    = new _2DTexture(game.Content.Load <Texture2D>("map/wall-V-2"), GameController.scale);
 }
 public Bomb(GameController game)
 {
     Position = new Vector2(10, 10);
     #if PLAY_SOUND
     LaunchSound  = game.Content.Load <SoundEffect>("sounds/LA_BowArrow");
     WallHitSound = game.Content.Load <SoundEffect>("sounds/LA_Bomb_Explode");
     #endif
     _game   = game;
     Texture = new _2DTexture(_game.Content.Load <Texture2D>("projectiles/singleBomb"), 2);
     game.Projectiles.Add(this);
 }
Exemple #5
0
        public Potion(GameController game, int powerup)
        {
            _game       = game;
            powerupType = powerup;
            rupees      = 5;
            Position    = new Vector2(10, 10);
            if (powerupType == 1)
            {
                Texture = new _2DTexture(_game.Content.Load <Texture2D>("projectiles/arrow"), 2);
            }
            else if (powerupType == 2)
            {
                Texture = new _2DTexture(_game.Content.Load <Texture2D>("projectiles/singleBomb"), 2);
            }
            else if (powerupType == 3)
            {
                Texture = new _2DTexture(_game.Content.Load <Texture2D>("projectiles/potion"), 2);
            }

            game.Projectiles.Add(this);
            #if PLAY_SOUND
            gotItem = game.Content.Load <SoundEffect>("sounds/LA_Get_PowerUp");
            #endif
        }