コード例 #1
0
ファイル: Camera.cs プロジェクト: Rosthouse/JumpNRun
 /// <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
ファイル: AnimatedObject.cs プロジェクト: Rosthouse/JumpNRun
 public virtual void killObject(AnimatedObject killer)
 {
 }