public KinectRagdollGame()
        {
            Main = this;

            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth = WIDTH;
            graphics.PreferredBackBufferHeight = HEIGHT;

           
            Content.RootDirectory = "Content";

            FarseerTextures.Init();
            FarseerTextures.SetGame(this);
            
            kinectManager = new KinectManager();
            farseerManager = new FarseerManager(true, this);
            ragdollManager = new RagdollManager();
            
            actionCenter = new ActionCenter(this);
            inputManager = new InputManager(this);
            
            //spriteHelper = new SpriteHelper();
            objectiveManager = new ObjectiveManager(this);
            powerupManager = new PowerupManager(ragdollManager, farseerManager);
            jukebox = new Jukebox();
            hazardManager = new HazardManager(farseerManager, ragdollManager);
            particleEffectManager = new ParticleEffectManager(graphics, ref farseerProjection);

            toolbox = new Toolbox(this);


            this.IsMouseVisible = true;
            bkColor = Color.CornflowerBlue;

        }
Esempio n. 2
0
        public KinectRagdollGame()
        {
            Main = this;

            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth  = WIDTH;
            graphics.PreferredBackBufferHeight = HEIGHT;


            Content.RootDirectory = "Content";

            FarseerTextures.Init();
            FarseerTextures.SetGame(this);

            kinectManager  = new KinectManager();
            farseerManager = new FarseerManager(true, this);
            ragdollManager = new RagdollManager();

            actionCenter = new ActionCenter(this);
            inputManager = new InputManager(this);

            //spriteHelper = new SpriteHelper();
            objectiveManager      = new ObjectiveManager(this);
            powerupManager        = new PowerupManager(ragdollManager, farseerManager);
            jukebox               = new Jukebox();
            hazardManager         = new HazardManager(farseerManager, ragdollManager);
            particleEffectManager = new ParticleEffectManager(graphics, ref farseerProjection);

            toolbox = new Toolbox(this);


            this.IsMouseVisible = true;
            bkColor             = Color.CornflowerBlue;
        }
Esempio n. 3
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (KinectRagdollGame game = new KinectRagdollGame())
     {
         game.Run();
     }
 }
Esempio n. 4
0
        //private int BUTTON_PADDING = 5;

        public Toolbox(KinectRagdollGame game)
        {
            this.game = game;

            toolMappings = new Dictionary<ToolboxButton, Tool>();
            actionMappings = new Dictionary<ToolboxButton, ClickAction>();
            buttons = new List<ToolboxButton>();

            Position = new Vector2(0, 0);

        }
Esempio n. 5
0
        public NailTool(KinectRagdollGame game)
            : base(game)
        {

        }
Esempio n. 6
0
        //private DragArea d;


        public DraggedTool(KinectRagdollGame game) : base(game)
        {
        }
Esempio n. 7
0
 public Tool(KinectRagdollGame game)
 {
     this.game = game;
 }