Beispiel #1
0
 public Portal(Texture2D texture, Vector2 position, int width, int height, float scale) : base(texture, position, width, height, scale)
 {
     this.IsPortal           = true;
     this.CollisionRectangle = new Rectangle((int)position.X - 10, (int)position.Y, width + 10, height);
     this.aniCreator         = new AnimationCreator();
     CreateAnimation();
 }
Beispiel #2
0
 public HUD(Texture2D heartTexture, Texture2D numbersTexture, AnimationCreator aniCreator, Player player)
 {
     this.heartTexture   = heartTexture;
     this.numbersTexture = numbersTexture;
     this.aniCreator     = aniCreator;
     this.player         = player;
     this.CreateAnimation();
 }
Beispiel #3
0
 public Player(Vector2 _position, int width, int height, float scale, Texture2D texture, Remote keyBoard, Movement movement, AnimationCreator aniCreator, Gravity gravity)
 {
     this.texture        = texture;
     this.currentTexture = texture;
     this.remote         = keyBoard;
     this.movement       = movement;
     this.width          = width;
     this.height         = height;
     this.scale          = scale;
     this.aniCreator     = aniCreator;
     this.gravity        = gravity;
     this.lives          = 3;
     CreateAnimationLeftRight();
     Init(_position, keyBoard);
 }