Пример #1
0
        protected override void LoadContent()
        {
            //Load Stuff
            spriteBatch = new SpriteBatch(GraphicsDevice);
            background  = Content.Load <Texture2D> ("background.png");
            player      = new sprite(Content.Load <Texture2D>("player.png"), 10, 10);

            int x = 0;
            int y = 0;

            foreach (int i in level1)
            {
                ++y;
                sprites.Add(new sprite(Content.Load <Texture2D> ("player.png"), y * 66, x * 66));
            }
        }
Пример #2
0
 public void CheckCollision(sprite p1, sprite p2)
 {
     if (p1.BoundingBox.Intersects(p2.BoundingBox))
     {
     }
 }