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; }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (KinectRagdollGame game = new KinectRagdollGame()) { game.Run(); } }
//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); }
public NailTool(KinectRagdollGame game) : base(game) { }
//private DragArea d; public DraggedTool(KinectRagdollGame game) : base(game) { }
public Tool(KinectRagdollGame game) { this.game = game; }