Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Microsoft.Xna.Framework;
- using Microsoft.Xna.Framework.Content;
- using Microsoft.Xna.Framework.Graphics;
- using Microsoft.Xna.Framework.Input;
- namespace Game
- {
- public class Rock
- {
- public Rectangle boundingBox;
- public Texture2D texture;
- public Vector2 rockPos;
- public Rock(Texture2D newTexture)
- {
- texture = newTexture;
- }
- public void Draw(SpriteBatch spriteBatch)
- {
- spriteBatch.Draw(texture, rockPos, Color.White);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment