Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: A very nice Pong clone using SFML - 2.1  (Read 24801 times)

0 Members and 1 Guest are viewing this topic.

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
Re: A very nice Pong clone using SFML - 2.1
« Reply #15 on: September 09, 2013, 02:17:47 pm »
Okay, I've fixed all the bugs reported by DarkYoung(except that wired collision part), updated the repo and also the exe download link. And now the game is good as ever. :D

And in my opinion the collision part is written that way so that the speed of the ball after collision is much faster after collsion with the end of the paddles than collision with the center.

Thanks!  ;)
« Last Edit: September 10, 2013, 01:12:18 pm by The illusionist mirage »

DarkYoung

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: A very nice Pong clone using SFML - 2.1
« Reply #16 on: September 09, 2013, 05:14:05 pm »
Im getting error when i try to run:

"The procedure entry point __gxx_personality_v0 could not be located in the libstdc++-6.dll"

I'm not using windows in EN language, but i hope translation is good.

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: A very nice Pong clone using SFML - 2.1
« Reply #17 on: September 09, 2013, 08:51:05 pm »
I get an error about libgcc_s_dw2-1.dll missing.

Just from googling stack overflow it looks like both of these errors have to do with what libraries MinGW links to.
http://stackoverflow.com/questions/4702732/the-program-cant-start-because-libgcc-s-dw2-1-dll-is-missing
http://stackoverflow.com/questions/17410718/the-procedure-entry-point-gxx-personality-v0-could-not-be-located-in-the-dynami

My guess is the -static-libgcc and -static-libstdc++ options mentioned in the first thread could potentially solve both of these problems, hopefully not just the first, so try that.

P.S. Don't use "Final" as your version number.  That's tempting fate =P
« Last Edit: September 09, 2013, 08:55:24 pm by Ixrec »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: A very nice Pong clone using SFML - 2.1
« Reply #18 on: September 09, 2013, 09:41:14 pm »
The first error means that the application uses the wrong runtime lib and the second one means that no runtime dll is found.
That means the new version didn't get shipped with runtime dll and for the first user a different runtime dll was "somewhere" (in PATH) found.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
Re: A very nice Pong clone using SFML - 2.1
« Reply #19 on: September 10, 2013, 05:21:20 am »
Hello guys

I just discovered that I compiled it wrongly, will re-upload again in a few hours...I am very busy at the moment...Thanks.
« Last Edit: September 10, 2013, 01:13:15 pm by The illusionist mirage »

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
Re: A very nice Pong clone using SFML - 2.1
« Reply #20 on: September 10, 2013, 07:38:59 am »
Hello

Fixed now. Game download link.
Link of repo is the same as before.

Hope it works.

CHEERS! :D

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: A very nice Pong clone using SFML - 2.1
« Reply #21 on: September 10, 2013, 07:57:33 am »
No dll errors!

I can score against the Easy and Intermediate AIs but not the Hard one, so the difficulty levels seem to work too.

I did find what might arguably be a bug: If the ball is directly above my paddle and I move the paddle up, the ball gets caught in it for several frames, making the bounce noise several times, then gets spit out at a sharp angle (so I usually scored when this happened).  Not sure how much of this is intended.

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
Re: A very nice Pong clone using SFML - 2.1
« Reply #22 on: September 10, 2013, 12:57:44 pm »
No dll errors!

I can score against the Easy and Intermediate AIs but not the Hard one, so the difficulty levels seem to work too.

I did find what might arguably be a bug: If the ball is directly above my paddle and I move the paddle up, the ball gets caught in it for several frames, making the bounce noise several times, then gets spit out at a sharp angle (so I usually scored when this happened).  Not sure how much of this is intended.

I'll try to fix that too. Actually, the problem is I don't have real life friends or people who can test or debug the program for me and nor does my school teacher help me, so every time I think that my program is error and bug free something new pops up. So, I sincerely beg pardon if I am pestering people too much with my simple and humble program.

I am really glad that I received so many feedbacks regarding my game. So I'd like to express my heartfelt gratitude to the community and of course SFML and its creator, Laurent sir.

Thanks again :D
« Last Edit: September 10, 2013, 01:18:17 pm by The illusionist mirage »

TeaBag

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: A very nice Pong clone using SFML - 2.1
« Reply #23 on: September 10, 2013, 05:52:37 pm »
Hey. So I just tried your game and these are 2 things I saw:
I'd say the ball is going too fast. It could be slower.
Playing on easy computer never hits the ball. I can easily win.
Also, I'd be a great idea to choose a more simple font.

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
Re: A very nice Pong clone using SFML - 2.1
« Reply #24 on: September 10, 2013, 07:27:04 pm »
Hey. So I just tried your game and these are 2 things I saw:
I'd say the ball is going too fast. It could be slower.
Playing on easy computer never hits the ball. I can easily win.
Also, I'd be a great idea to choose a more simple font.

Thanks for your tips. :)