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

Author Topic: Pang game  (Read 1366 times)

0 Members and 1 Guest are viewing this topic.

firefly2442

  • Newbie
  • *
  • Posts: 23
    • View Profile
Pang game
« on: May 18, 2013, 07:28:16 am »
https://github.com/firefly2442/pang

Requires:
-CMake
-SFML2
-SFGUI

I'm just tinkering with the Game from Scratch tutorial and I'm kind of stuck on the mechanics of the game portion.  The game is a pong clone.  For the most part, the ball moves appropriately and is able to collide off the player paddle and the top (but not the AI paddle).  Also, the ball sometimes doesn't appear and the paddles get stuck every so often.

So it needs some work, but for the moment I would like to get the ball to bounce off the AI paddle.  I'm comparing between the player and AI paddle files but they seem quite similar to me.  Any ideas or at least places to start looking?

Thanks. :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10837
    • View Profile
    • development blog
    • Email
Re: Pang game
« Reply #1 on: May 20, 2013, 04:17:15 pm »
You can always look at the official SFML Pong example. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything