Guest User

Rocks.cs

a guest
Dec 25th, 2014
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Microsoft.Xna.Framework;
  6. using Microsoft.Xna.Framework.Content;
  7. using Microsoft.Xna.Framework.Graphics;
  8. using Microsoft.Xna.Framework.Input;
  9.  
  10. namespace Game
  11. {
  12. public class Rock
  13. {
  14. public Rectangle boundingBox;
  15. public Texture2D texture;
  16. public Vector2 rockPos;
  17.  
  18. public Rock(Texture2D newTexture)
  19. {
  20. texture = newTexture;
  21. }
  22.  
  23. public void Draw(SpriteBatch spriteBatch)
  24. {
  25. spriteBatch.Draw(texture, rockPos, Color.White);
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment