Esempio n. 1
0
 public void AddPickUp(Texture2D texture, Vector2 position, PlayerObjectMode playerMode)
 {
     PickUpObj obj = new PickUpObj(texture, position);
     obj.playerTangible = playerMode;
     obj.playerVisible = playerMode;
     obj.SetCollisionBox(22, 22, Vector2.Zero);
     pickUpList.Add(obj);
 }
Esempio n. 2
0
 public PickUpObj AddBouncyBall(float bounceMultiplier, Texture2D texture, Vector2 position, PlayerObjectMode playerMode)
 {
     PickUpObj obj = new PickUpObj(bounceMultiplier, texture, position);
     obj.playerTangible = playerMode;
     obj.playerVisible = playerMode;
     pickUpList.Add(obj);
     pickUpAuras.Add(new GaussianTargets(gameStateManager.game.GraphicsDevice));
     obj.SetCollisionBox(22, 22, Vector2.Zero);
     return obj;
 }