I've only spotted one implementation change...
To use the code=cpp tag, you simply write
[ code=cpp ]// Your code[ /code ] (without the spaces).
#include <SFML/Graphics.hpp>
class bullet{
private:
sf::CircleShape bullet_shape;
float x1, y1;
unsigned short x2, y2;
public:
bullet( float, float, unsigned short, unsigned short);
};
//bullet creation
bullet::bullet( float kult_x, float kult_y, unsigned short mouse_x, unsigned short mouse_y)
/*Kult is the name of the player character. Kult_x is the position on the x-axis
while kult_y is the position of Kult on the y-axis*/
x1(kult_x),
y1(kult_y),
/*Mouse_x is the position of the mouse on the x-axis and mouse_y
is the position of the mouse on the y-axis */
x2(mouse_x),
y2(mouse_y)
{
bullet_shape.setRadius( 2 );
bullet_shape.setFillColor( Color::Black );
bullet_shape.setPosition( x1, y1 );
//the below line is temporary
bullet_shape.move( 3, 3);
}
Fixed backslash \ to forward slash /.
Fixed case sensitivity graphics.hpp to Graphics.hpp.
Fixed no use of the initialization list.
Next I'll have to implement a game loop and then you might want to add an draw function to the class, which can be called within the game loop.
If you're new to C++, I highly recommend you to read a
good book about C++ first and stay with simple console applications for the first few weeks/month. C++ is not a language that can be learned with trial and error.