public override void Initialize()
 {
     _jumper = new JumpHandler(this.Game, this);
     _jumper.Initialize();
     this.Game.Components.Add(_jumper);
     _rigidBody            = new RigidBody(_game, 1f, 0.5f, 20f);
     _rigidBody.collisions = true;
     _keyboard             = new KeyboardHandler();
     base.Initialize();
 }
Esempio n. 2
0
 public override void Initialize()
 {
     _keyboard = new KeyboardHandler();
     base.Initialize();
     graphics = (GraphicsDeviceManager)Game.Services.GetService(typeof(IGraphicsDeviceManager));
 }