示例#1
0
 public Camera(IBaseGameObj followObj, int width, int height)
 {
     this._shift     = new Point(width / 2 - followObj.Position.X, height / 2 - followObj.Position.Y);
     this._prevShift = _shift;
     SetNewParams(width, height, followObj);
     _followObj.Moved += Update;
 }
示例#2
0
 public void SetNewFollowObj(IBaseGameObj newFollowObj) => _followObj = newFollowObj;
示例#3
0
 public void SetNewParams(int newWidth, int newHeight, IBaseGameObj newFollowObj)
 {
     SetSize(newWidth, newHeight);
     _followObj = newFollowObj;
 }
示例#4
0
 public void InvokeCollision(IBaseGameObj other) => Collision?.Invoke(other);
示例#5
0
 public void InvokeCollision(IBaseGameObj other)
 {
     throw new NotImplementedException();
 }