コード例 #1
0
ファイル: Creature.cs プロジェクト: Cur10s1ty/project2
 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;
     }
 }
コード例 #2
0
ファイル: Demon.cs プロジェクト: Cur10s1ty/project2
 /// <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);
 }