Exemple #1
0
 public Door(Level l, Color c, float x, float y, int width, int height)
     : base("door_tile_open", x, y, width, height)
 {
     this.opened = false;
     this.level = l;
     this.color = c;
 }
Exemple #2
0
 public Key(Color c, Level l, float x, float y, int width, int height)
     : base("key_tile", x, y, width, height)
 {
     this.SpawnPoint = new Vector2(x, y);
     color = c;
     level = l;
 }
Exemple #3
0
 public Ramp(string imageName, float x, float y, int width, int height, Level l)
     : base(imageName, x, y, width, height)
 {
     this.SpawnPoint = new Vector2(x, y);
     leftPushBox = new PushBox(this, x - 3f, y + 3, 5, height - 6, true);
     rightPushBox = new PushBox(this, x + width, y + 3, 5, height - 6, false);
 }
Exemple #4
0
 public Switch(Color c, Level l, float x, float y, int width, int height, bool reverse)
     : base("switch_button.png", x, y, width, height)
 {
     color = c;
         activated = false;
         activatedonce = true;
         level = l;
         reverseGate = reverse;
 }
Exemple #5
0
 public Goal(Level l, Color c, float x, float y, int width, int height)
     : base("door", x, y, width, height)
 {
     this.opened = false;
     this.bunnyTouching = false;
     this.clydeTouching = false;
     this.level = l;
     this.color = c;
 }
 public InputManager(List<Sprite> worldSprites, Sprite activeCharacter, Sprite inactiveCharacter,List<Sprite> platforms, List<SoundEffect> sounds, Level l)
 {
     this.level = l;
     this.worldSprites = worldSprites;
     ActiveCharacter = activeCharacter;
     InactiveCharacter = inactiveCharacter;
     this.Platforms = platforms;
     previousState = InactiveCharacter.state;
     this.sounds = sounds;
     sum = TimeSpan.Zero;
     this.playerIcon = playerIcon;
 }
Exemple #7
0
 public Water(float x, float y, int width, int height, Level l)
     : base("blank", x, y, width, height)
 {
     this.level = l;
 }