Exemple #1
0
 public void HandlePlayerCollision()
 {
     Visible = false;
     Scene.Remove(this);
     if (Scene is CollisionScene)
     {
         CollisionScene cs = Scene as CollisionScene;
         cs.EventDispatcher.DispatchEvent(new Event("COIN_PICKED_UP", this));
     }
 }
Exemple #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()
        {
            base.LoadContent();
            // TODO: use this.Content to load your game content here
            Image.LoadSpriteSheet(@"spritesheet.xml");

            //TestScene ts = new TestScene();
            //Scene = ts;

            //PlanetScene ps = new PlanetScene();
            //Scene = ps;

            CollisionScene cs = new CollisionScene();

            Scene = cs;
        }