Exemple #1
0
 public LoadLevel(String filename, Scene scene)
 {
     this.scene = (Game1) scene;
     ParseCSV(ReadFile(filename));
     SortBricks(); //sort bricks before generating brick positions;
     GenerateBrickPos();
 }
        public KinectManager(Scene s)
        {
            scene = (Game1) s;
            try
            {
                KinectSensor.KinectSensors.StatusChanged += KinectSensors_StatusChanged;
                DiscoverKinectSensor();

                Debug.WriteLineIf(scene.debugging, kinect.Status);
                joint = scene.game.Content.Load<Texture2D>("Sprites/joint");
                hand = scene.game.Content.Load<Texture2D>("Sprites/hand");
            }
            catch (Exception e)
            {
                Debug.WriteLine(e.ToString());
            }
        }
Exemple #3
0
 public Player(Scene scene)
 {
     this.scene = (Game1)scene;
     width = scene.game.GraphicsDevice.Viewport.Width;
     height = scene.game.GraphicsDevice.Viewport.Height;
 }
Exemple #4
0
 public Text(Scene scene)
 {
     this.scene = scene;
 }