예제 #1
0
파일: BounceGame.cs 프로젝트: zfogg/Bounce
        public BounceGame()
        {
            graphics = new GraphicsDeviceManager(this);
            ContentManager = new ContentManager(this.Services);
            sceneStack = new SceneStack(this);

            input = new Input();
            input.OnKeyDown += new KeyboardEvent(onKeyDown);
        }
예제 #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>();
        }
예제 #3
0
파일: Scene.cs 프로젝트: zfogg/Bounce
 protected Scene(SceneStack sceneStack)
 {
     Input = new Input();
     this.sceneStack = sceneStack;
 }
예제 #4
0
파일: BottomScene.cs 프로젝트: zfogg/Bounce
 public BottomScene(SceneStack sceneStack)
     : base(sceneStack)
 {
     arial = BounceGame.ContentManager.Load<SpriteFont>(@"arial");
 }