Пример #1
0
 public bool IsViewable(TransformableEntity e)
 {
     return IsViewable(e.Position); // TODO: Add hitbox testing too.
 }
Пример #2
0
 public static void DrawTransformableEntity(this SpriteBatch spriteBatch, TransformableEntity transformableEntity, Texture2D texture, Rectangle sourceRectangle, SpriteEffects spriteEffects, float layerDepth)
 {
     spriteBatch.Draw(texture, transformableEntity.RenderPosition, sourceRectangle, transformableEntity.RenderColor, transformableEntity.RenderRotation, transformableEntity.RenderOrigin, transformableEntity.Scale, spriteEffects, layerDepth);
 }
Пример #3
0
 public void Follow(TransformableEntity target)
 {
     if (target == null)
         return;
     Tracking = target;
     Mode = CameraMode.TrackTarget;
 }