#include "../headers/Bullet.h" Bullet::Bullet(float x, float y, sf::Texture &texture): Projectile(x,y, texture) {} Bullet::Bullet(float x, float y, sf::Texture &texture, float speed): Projectile(x,y, texture) { this->speed = -speed; } void Bullet::update() { //std::cout << "Start update: speed = " << speed << ", position.y = " << position.y << std::endl; sprite.move(0.0f, speed); position.y += int(speed); if(position.y < -100) { outOfBounds = true; } }