コード例 #1
0
        public override void Init(World w)
        {
            base.Init(w);

            bodySound = new BodySound();
            bodySound.Start();
        }
コード例 #2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch    = new SpriteBatch(GraphicsDevice);
            graphicsDevice = GraphicsDevice;

            SpriteHelper.LoadContent(Content);

            BodySound.LoadContent(Content);
            ragdollManager.LoadContent(Content);
            farseerManager.LoadContent();
            objectiveManager.LoadContent(Content);
            toolbox.LoadContent();
            Jukebox.LoadContent(Content);
            particleEffectManager.LoadContent(Content);

            InitializeTransform();

            kinectManager.InitKinect();

            Jukebox.Loop("Clay");

            base.LoadContent();
        }