Esempio n. 1
0
        public void spawnShuriken(bool player, Vector2 beginning)
        {
            Shuriken shurik;

            if (player) //check who started the "skill"
            {
                shurik          = new Shuriken("shuriken");
                shurik.Position = beginning;
                if (this.player1.direction == "r")
                {
                    shurik.Move = Shuriken.Direction.RIGHT;
                }
                else
                {
                    shurik.Move = Shuriken.Direction.LEFT;
                }
            }
            else
            {
                shurik          = new Shuriken("shuriken");
                shurik.Position = beginning;
                if (this.player2.direction == "r")
                {
                    shurik.Move = Shuriken.Direction.RIGHT;
                }
                else
                {
                    shurik.Move = Shuriken.Direction.LEFT;
                }
            }
            shurikens.Add(shurik);
        }
Esempio n. 2
0
 public Collision_shuriken(Shuriken shuriken, Enemy enemy)
 {
     this.shuriken = shuriken;
     this.enemy    = enemy;
 }