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; }
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; }
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); }
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; }
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; }
public Water(float x, float y, int width, int height, Level l) : base("blank", x, y, width, height) { this.level = l; }