1
vote
1answer
153 views

How to adjust a font to fit inside a speech bubble?

I'm creating a game that contains a speech bubble for dialog. The idea of this function is to allow one call to set new text in a speech bubble. The speech bubble will adjust in size of the new font ...
-1
votes
2answers
332 views

Shooting many bullets toward the mouse position

I try to shoot a bullet toward the mouse position by this code. float deltaX = mousePosition.x - (aircraft.getPosition().x + aircraft.getLocalBounds().width / 2); float deltaY = mousePosition.y - ...
2
votes
2answers
470 views

3D Translation using only distance and angles

So I'm starting to foray into 3D game programming, but I've hit something of a snag. I have an object I want to move around. It should always move either forward or backward relative to its local Z ...
1
vote
1answer
493 views

How to form a concave shape out of convex shapes? [closed]

I'm trying to get around the rule of only being able to form convex shapes in the SFML C++ library. To do this I'm planning on testing given vertices, and if concave, splitting the vertices ...
0
votes
2answers
1k views

my SFML sprite Move() function: FeedBack?

Hey so i'm making a pong game with SFML and in the process made a function that takes a Time, Speed, Angle of movement, buffer for the movement on the X axis, and buffer for the movement on the Y ...