/// <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()
 {
     // Loading teddy bears
     teddyBear0 = new TeddyBear(Content, @"graphics\teddybear0", 150, 100);
     teddyBear1 = new TeddyBear(Content, @"graphics\teddybear1", 300, 100);
     base.Initialize();
 }
示例#2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            bear0 = new TeddyBear(Content, "teddybear0", 150, 100, WINDOW_WIDTH, WINDOW_HEIGHT);
            bear1 = new TeddyBear(Content, "teddybear1", 250, 100, WINDOW_WIDTH, WINDOW_HEIGHT);
        }
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // create two teddybear
            teddyBear0 = new TeddyBear(Content, @"graphics\teddybear0", 0, 0);
            teddyBear1 = new TeddyBear(Content, @"graphics\teddybear1", 100, 0);
        }
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // Create teddys
            teddy0 = new TeddyBear(Content, "teddybear0", 40, 40);
            teddy1 = new TeddyBear(Content, "teddybear1", 100, 100);
        }
示例#5
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     spriteBatch = new SpriteBatch(GraphicsDevice);
     bear0       = new TeddyBear(Content, "teddybear0", 100, 100, WINDOW_WIDTH, WINDOW_HEIGHT);
     bear1       = new TeddyBear(Content, "teddybear1", 300, 300, WINDOW_WIDTH, WINDOW_HEIGHT);
     bear2       = new TeddyBear(Content, "teddybear2", 500, 500, WINDOW_WIDTH, WINDOW_HEIGHT);
     // TODO: use this.Content to load your game content here
 }
示例#6
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // use this.Content to load your game content here
            // use TeddyBear constructor to load bears
            teddy0 = new TeddyBear(Content, @"graphics\teddybear0", 200, 100);
            teddy1 = new TeddyBear(Content, @"graphics\teddybear1", 200, 100);
        }
示例#7
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // Create Teddy Bear

            bear0 = new TeddyBear(Content, "teddybear0", 100, 100, new Vector2(-5, 0), WIDTH_RESOLUTION, HEIGHT_RESOLUTION);
            bear1 = new TeddyBear(Content, "teddybear1", 100, 101, new Vector2(5, 0), WIDTH_RESOLUTION, HEIGHT_RESOLUTION);
            bear2 = new TeddyBear(Content, "teddybear1", 300, 300, new Vector2(-5, 5), WIDTH_RESOLUTION, HEIGHT_RESOLUTION);
        }
示例#8
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // Create Teddy Bear

            bear0 = new TeddyBear(Content, "teddybear0", 100, 100,new Vector2(-5,0), WIDTH_RESOLUTION , HEIGHT_RESOLUTION);
            bear1 = new TeddyBear(Content, "teddybear1", 100, 101,new Vector2(5,0), WIDTH_RESOLUTION, HEIGHT_RESOLUTION);
            bear2 = new TeddyBear(Content, "teddybear1", 300, 300,new Vector2(-5,5), WIDTH_RESOLUTION, HEIGHT_RESOLUTION);
        }
示例#9
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // TODO: use this.Content to load your game content here
            bear0 = new TeddyBear(Content, "teddybear0", 100, 100, WINDOW_WIDTH, WINDOW_HEIGHT);
            bear1 = new TeddyBear(Content, "teddybear1", 200, 200, WINDOW_WIDTH, WINDOW_HEIGHT);
            bomb = new TeddyBear(Content, "bomb", 300, 300, WINDOW_WIDTH, WINDOW_HEIGHT);
        }