Пример #1
0
 public override void Initialize()
 {
     mCamera = new Camera();
     mScene = new SceneData();
     mScene.GamePlane = new Rectangle(0, 0, EngineSettings.VirtualResWidth, EngineSettings.VirtualResHeight);
     mCamera.GameScreen = mScene.GamePlane;
     mPlayer = new Hansel();
 }
Пример #2
0
		public void LoadReferences(Camera pCamera)
		{
			rCamera = pCamera;
		}
Пример #3
0
        /// <summary>
        /// Updated die Ebenenverschiebung anhand der übergebenen Kamera, relativ zu Viewport und Viewarea.
        /// </summary>
        /// <param name="pCamera">Zu verwendende Kamera.</param>
        public virtual void Update(Camera pCamera)
        {
			Position = pCamera.Position * mSpeed - pCamera.Position;
        }
Пример #4
0
		public void LoadReferences(Camera pCamera, Player pOtherPlayer)
		{
			base.LoadReferences(pCamera);
			rOtherPlayer = pOtherPlayer;
		}