示例#1
0
 private void loadCamera()
 {
     //nmcg - camera path manager - step 1
     this.camera2D = new Camera2D(this,
         new Vector2(this.GraphicsDevice.Viewport.Width / 2, 2100), 0, 1);
     //nmcg - game camera - step 3
     Components.Add(camera2D);
 }
示例#2
0
 private void loadCamera()
 {
     int[] levelLenght = getFileLength("", currentLevel);
     //nmcg - camera path manager - step 1
     this.camera2D = new Camera2D(this,
         new Vector2(this.GraphicsDevice.Viewport.Width / 2, levelLenght[0]*60), 0, 1);
     //nmcg - game camera - step 3
     Components.Add(camera2D);
 }