Exemple #1
0
 public void Stick(Tongue tongue)
 {
     this.tongue = tongue;
     stuck = true;
     if (tongue.source.location.X < this.location.X)
     {
         this.speed.X = -7;
     }
     else
     {
         this.speed.X = 7;
     }
 }
Exemple #2
0
 /// <summary>
 /// The player =D
 /// </summary>
 public Demon(float x, float y)
     : base(x, y)
 {
     this.jumpTex = AkumaContentManager.demonJumpTex;
     this.walkTex = AkumaContentManager.demonWalkTex;
     this.tongueStanceTex = AkumaContentManager.demonTongueTex;
     this.jumping = false;
     this.falling = false;
     this.maxJumpHeight = 40;
     this.stopJumpOn = (int)y;
     this.floorHeight = (int)y;
     this.speed = new Vector2(0, 0);
     this.fireballs = new LinkedList<Projectile>();
     this.fireballsToRemove = new LinkedList<Projectile>();
     this.tongue = new Tongue(this);
 }