Пример #1
0
 /// <summary>
 /// Constructor for a camera following an object
 /// </summary>
 /// <param name="zoom">Zoom factor</param>
 /// <param name="rotation">Rotation in radians</param>
 /// <param name="followingObject">The object the camera has to follow</param>
 /// <param name="graphicsDevice">A graphics device</param>
 public Camera(float zoom, float rotation, AnimatedObject followingObject, GraphicsDevice graphicsDevice)
     : this(zoom, followingObject.Center, rotation, false, graphicsDevice)
 {
     this.followingObject = followingObject;
 }
Пример #2
0
 public virtual void killObject(AnimatedObject killer)
 {
 }