Beispiel #1
0
 protected virtual void Setup(Player setupPlayer, IPlayerStateTransitionSet setupTransitionSet, ISprite sprite)
 {
     this.player                 = setupPlayer;
     this.player.Sprite          = sprite;
     this.player.Body.Dimensions = sprite.Dimensions;
     this.transitionSet          = setupTransitionSet;
 }
Beispiel #2
0
 protected override void Setup(Player player, IPlayerStateTransitionSet transitionSet, ISprite sprite)
 {
     base.Setup(player, transitionSet, sprite);
     this.player.Body.Velocity       = Vector2.Zero;
     this.player.HorizontalImpulse   = 0.0f;
     player.Sprite.AnimationDelegate = this;
 }
 protected override void Setup(Player player, IPlayerStateTransitionSet transitionSet, ISprite sprite)
 {
     base.Setup(player, transitionSet, sprite);
     player.Sprite.AnimationDelegate = this;
 }
 protected override void Setup(Player player, IPlayerStateTransitionSet transitionSet, ISprite sprite)
 {
     base.Setup(player, transitionSet, sprite);
     this.player.Body.Velocity     = new Vector2(0.0f, this.player.Body.Velocity.Y);
     this.player.HorizontalImpulse = 0.0f;
 }
Beispiel #5
0
 protected override void Setup(Player player, IPlayerStateTransitionSet transitionSet, ISprite sprite)
 {
     base.Setup(player, transitionSet, sprite);
     player.Body.ApplyScaledImpulse(new Vector2(0, JUMP_IMPULSE_MAG));
     SoundPool.PlaySound(Sound.RambiJump);
 }
Beispiel #6
0
 protected override void Setup(Player player, IPlayerStateTransitionSet transitionSet, ISprite sprite)
 {
     base.Setup(player, transitionSet, sprite);
 }
 protected override void Setup(Player player, IPlayerStateTransitionSet transitionSet, ISprite sprite)
 {
     base.Setup(player, transitionSet, sprite);
     player.Sprite.AnimationDelegate = this;
     SoundPool.PlaySound(Sound.RambiAttack);
 }
 protected override void Setup(Player player, IPlayerStateTransitionSet transitionSet, ISprite sprite)
 {
     base.Setup(player, transitionSet, sprite);
     player.Body.ApplyScaledImpulse(new Vector2(0.0f, JUMP_IMPULSE_MAG));
 }