Exemplo n.º 1
0
Arquivo: HUD.cs Projeto: fattjake/tctk
        public void Load(ContentManager content, Viewport viewPort)
        {
            fluffyHUD = content.Load<Texture2D>("HUD/FluffyHUD");
            cursor = content.Load<Texture2D>("Cursor/fluffycursor");
            cupcakeIcon = content.Load<Texture2D>("HUD/Cupcake_icon");
            cupcakeIconSel = content.Load<Texture2D>("HUD/Cupcake_icon_selected");
            rainbowIcon = content.Load<Texture2D>("HUD/rainbowmissle_icon");
            rainbowIconSel = content.Load<Texture2D>("HUD/rainbowmissle_icon_selected");

            mHUDCam = new Camera(viewPort);
        }
Exemplo n.º 2
0
        public void Load(ContentManager content, Viewport viewPort)
        {
            fluffyHUD = content.Load<Texture2D>("HUD/hudnewshiny");
            cursor = content.Load<Texture2D>("Cursor/fluffycursor");

            rainbowIconUnsel = content.Load<Texture2D>("HUD/rainbowmissle_icon");
            rainbowIconSel = content.Load<Texture2D>("HUD/rainbowmissle_icon_selected");

            bombIconUnsel = content.Load<Texture2D>("HUD/Bombheart_icon");
            bombIconSel = content.Load<Texture2D>("HUD/BombHeart_icon_selected");

            missileIconUnsel = content.Load<Texture2D>("HUD/Lollirocket_icon");
            missileIconSel = content.Load<Texture2D>("HUD/Lollirocket_icon_selected");

            rainbowIcon = rainbowIconSel;
            bombIcon = bombIconUnsel;
            missileIcon = missileIconUnsel;

            mHUDCam = new Camera(viewPort);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            graphics.PreferredBackBufferWidth = graphics.GraphicsDevice.DisplayMode.Width;
            graphics.PreferredBackBufferHeight = graphics.GraphicsDevice.DisplayMode.Height;

            //            graphics.PreferredBackBufferWidth = 800;
            //            graphics.PreferredBackBufferHeight = 600;

            //graphics.ToggleFullScreen();

            this.Window.Title = "Too Cute To Live";

            graphics.ApplyChanges();

            Class1.graph = graphics;

            mCharacterManager = CharacterManager.GetInstance(Content, graphics);

            mMenu = new Menu(this);
            mScoring = new Scoring();
            mIntro = new Intro();

            mItemManager = new ItemManager(Content);

            mCam = new Camera(graphics.GraphicsDevice.Viewport);

            hud = new HUD();
            wM = new WeaponManager(Content, graphics);

            /* Number of seconds the level will run */
            timer = 60.0f;

            temp = rand.Next(0, 10);

            base.Initialize();
        }