public BounceGame() { graphics = new GraphicsDeviceManager(this); ContentManager = new ContentManager(this.Services); sceneStack = new SceneStack(this); input = new Input(); input.OnKeyDown += new KeyboardEvent(onKeyDown); }
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>(); }
protected Scene(SceneStack sceneStack) { Input = new Input(); this.sceneStack = sceneStack; }
public BottomScene(SceneStack sceneStack) : base(sceneStack) { arial = BounceGame.ContentManager.Load<SpriteFont>(@"arial"); }