public Fish(Vector2 position, AnimatedTexture texture) { this.angle = 0; this.texture = texture; this.position = position; startPosition = position; this.motion = Vector2.Zero; hitBox = new Rectangle((int)position.X, (int)position.Y, 48, 48); }
public SpinningPlasma(Rectangle hitBox, float radius, float startTime, bool counterCLockwise, AnimatedTexture texture) { isDeadly = true; this.hitBox = hitBox; time = startTime; radius *= 3.0f / 54.0f; this.radius = radius; this.texture = texture; this.counterClockwise = counterCLockwise; position = new Vector2(hitBox.X, hitBox.Y); }
public Cat(Vector2 position, int index, string message, AnimatedTexture normalTexture, AnimatedTexture hitTexture, SpriteFont font) { this.position = position; this.index = index; this.message = message; this.normalTexture = normalTexture; this.hitTexture = hitTexture; this.font = font; hit = false; hitBox = new Rectangle((int)position.X, (int)position.Y, 64, 64); ProcessText(); }
public Angel(Texture2D[] normalSprite, Texture2D[] jumpSprite, SoundEffect hitWall, SoundEffect swish, Vector2 position) { this.normalSprite = new AnimatedTexture(normalSprite, normalTime, false); this.flySprite = new AnimatedTexture(jumpSprite, flyTime, true); this.flipped = false; this.isNormal = true; this.position = position; this.motion = Vector2.Zero; this.highJump = this.lowJump = false; this.hitWall = hitWall; this.swish = swish; keyCount = 0; previous = 0; hitBox = new Rectangle((int)position.X + 8, (int)position.Y, 48, 48); }