Beispiel #1
0
        public BounceGame()
        {
            graphics = new GraphicsDeviceManager(this);
            ContentManager = new ContentManager(this.Services);
            sceneStack = new SceneStack(this);

            input = new Input();
            input.OnKeyDown += new KeyboardEvent(onKeyDown);
        }
Beispiel #2
0
        public PhysicalScene(SceneStack sceneStack)
            : base(sceneStack)
        {
            camera = (Camera2D)sceneStack.Game.Services.GetService(typeof(Camera2D));

            World = new World(BounceGame.GravityCoEf * Vector2.UnitY);
            debugFarseer = new DebugBounce(World, camera);

            PhysicalItems = new List<PhysicalItem>();
            itemsToKill = new List<PhysicalItem>();
        }
Beispiel #3
0
 protected Scene(SceneStack sceneStack)
 {
     Input = new Input();
     this.sceneStack = sceneStack;
 }
Beispiel #4
0
 public BottomScene(SceneStack sceneStack)
     : base(sceneStack)
 {
     arial = BounceGame.ContentManager.Load<SpriteFont>(@"arial");
 }