示例#1
0
 public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     graphics.PreferredBackBufferWidth = 1024;
     graphics.PreferredBackBufferHeight = 768;
       //  graphics.IsFullScreen = true;
     this.Window.Title = "Kinder Kinect";
     Content.RootDirectory = "Content";
     debugDraw = new DebugDrawer(this);
     errorLogger = new Logger(new Uri(@"..\..\..\errorLog.txt", UriKind.Relative));
     kinect = new KinectService(errorLogger);
     player = new PlayerProfile();
 }
 public ButterflyLevel(Camera Camera, ButterflyPlayer Player, Logger ErrorLogger, Game1 MyGame)
 {
     myCam = Camera;
     player = Player;
     butterflies = new List<Butterfly>();
     LevelStarting = true;
     errorLogger = ErrorLogger;
     myGame = MyGame;
     spriteQueue = new List<Tuple<Vector3, int>>();
     queueTimers = new List<int>();
     scoreStrings = new List<string>();
     playerProfile = myGame.Services.GetService(typeof(PlayerProfile)) as PlayerProfile;
 }