10 years, 5 months ago
Highlights
10 years, 5 months ago
std::vector<sf::Sprite> objects; for (auto &obj : objects) { for (auto &collisionObject : objects) { if (obj.getGlobalBounds().intersects(collisionObject.getGlobal…
10 years, 5 months ago
I can't type much, because the text box for it is messed up as well, but the whole site is *really* messed up; except for the home page
10 years, 9 months ago
In my game, I want the sprite to be able to rotate towards the mouse. However, the conventional method of atan2(dY, dX) gives bad results. I want to find out what I am doing wro…
11 years, 3 months ago
Hello! I am on this forum because I want to know where I should go now. But first - Some story. I wanted to learn how to program since I was 11, and I attempted to do so…
12 years, 4 months ago
Latest Activity
See all in Discussionsstd::vector<sf::Sprite> objects; for (auto &obj : objects) { for (auto &collisionObject : objects) { if (obj.getGlobalBounds().intersects(collisionObject.getGlobalBounds())) { // collisi
10 years, 5 months ago
Do you know if brute-forcing it will lag the game? If it does, take a look into quadtrees. If not, …
10 years, 5 months ago
Imagine a game with elevators in it. It would usually have 2 classes Person Elevator The Person class …
10 years, 8 months ago