Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Ball {
- private Rectangle size;
- public ball()
- { ........
- size = new Rectangle(0, 0, texture.Width, texture.Height);
- } ........
- public Draw()
- {
- // New way. I have working rotation, but the ball doesn't change vectors.
- spriteBatch.Draw(texture, resetPos, null, Color.White, RotationAngle, Origin, 1f, SpriteEffects.None, 0);
- // Old way. But obviously no rotation.
- spriteBatch.Draw(texture, size, Color.White);
- }
- }
RAW Paste Data