Esempio n. 1
0
 public void Draw()
 {
     if (WithinCamera(_cameraPos))
     {
         GSS.spriteBatch.Draw(_texture,
                              DrawHelp.getShape(_cameraPos, _position, _size),
                              null, Color.White, _rotationAngle, _origin, SpriteEffects.None, 0);
     }
     Debug();
 }
Esempio n. 2
0
 public Rectangle getShape(Vector2 cameraPos)
 {
     return(DrawHelp.getShape(cameraPos, Position, Size));
 }