My little test pong game

closed account (S6k9GNh0)
Could someone take this code: http://pastebin.com/f5adcc5d2
and see if it compiles on a Windows computer? Then see if it matches the bug shown here: http://sfml-dev.org/forum/viewtopic.php?t=2138

Basically, the paddle should start at the bottom. When you press the button, S, the paddle should stay at the bottom but instead it moves up. That's all. Or if you could find anything wrong with the code that causes this, I would be much obliged. I've been searching for about a day now.

I would also like to note, this was a test that I used to see a few things. I'm going to remake it using a MUCH MUCH better design but I don't want to remake something that I'll have the same problem with. At this rate, I might move back to SDL
Last edited on
Sounds like it's using Cartesian rather than graphical coordinates. Basically, the origin is the bottom-left corner.
Why printf() and not cout?
closed account (S6k9GNh0)
DrChill: cstdio is a little bit lighter and it really doesn't matter.. if I were to release it, the output streams probably wouldn't exist.

The origin is in the upper left corner. That why calling Paddle.SetY(0); Window->Draw(Paddle); sets the paddle in the upper right corner. Since the gentlemen on the SFML forums decided to take a complete guess as to what I was doing, he guess almost completely wrong and no one has responded for about a day and half. I'm starting to think it's a bug with the X11 implementation but who knows.
Last edited on
closed account (S6k9GNh0)
*bump*
Topic archived. No new replies allowed.