Esempio n. 1
0
 public bananaShot(Player player)
     : base(player)
 {
     projectileImageString = "Projectile-banana.png";
     projectileType = "Banana slice";
     seconds = 5.0f;
     speed = 5f;
 }
Esempio n. 2
0
 public grapeShot(Player player)
     : base(player)
 {
     projectileImageString = "Projectile-grape.png";
     projectileType = "Grape slice";
     seconds = 5.0f;
     speed = 5f;
 }
Esempio n. 3
0
 public fruitShot(Player player)
 {
     this.player = player;
 }
Esempio n. 4
0
 public strawberryShot(Player player)
     : base(player)
 {
     projectileImageString = "Projectile-strawberry.png";
     projectileType = "Strawberry slice";
     seconds = 5.0f;
     speed = 5f;
 }
Esempio n. 5
0
 public pearShot(Player player)
     : base(player)
 {
     projectileImageString = "Projectile-pear.png";
     projectileType = "Pear slice";
     seconds = 5.0f;
     speed = 5f;
 }
Esempio n. 6
0
        private Player createPlayer(Texture2D playerImage, int x, int y, float movementSpeed, 
            float rotateSpeed, Vector2 healthBarLocation, Input playerInput)
        {
            playerAmount++;
            System.Diagnostics.Debug.WriteLine("Making a player: " + playerAmount);
            TextureObj playerObj = new TextureObj(playerAmount, playerImage, new Vector2(x, y),
                new Rectangle(0, 0, playerImage.Width, playerImage.Height), Color.White, 0,
                new Vector2(playerImage.Width / 2, playerImage.Height / 2), 1.0f, SpriteEffects.None, 1, "Player");

            addAsActive(playerObj);
            Player newPlayer = new Player(playerAmount, playerObj, movementSpeed, rotateSpeed, healthBarLocation, playerInput);
            playerList.Add(newPlayer);
            return newPlayer;
        }
Esempio n. 7
0
 public static void removeAsPlayer(Player player)
 {
     toRemovePlayers.Add(player);
     changeInPlayers = true;
     changeInLists = true;
 }
Esempio n. 8
0
 public static void addAsPlayer(Player player)
 {
     toAddPlayers.Add(player);
     changeInPlayers = true;
     changeInLists = true;
 }