SFML community forums

General => SFML projects => Topic started by: lightningblah on March 18, 2014, 08:22:14 pm

Title: My First Game: Jong (A Pong Clone)
Post by: lightningblah on March 18, 2014, 08:22:14 pm
Hey guys,

I've been working on this game on and off for about 2 months now while I learn C++ and SFML. 

It features a vs AI mode (with 3 difficulties) and a vs player mode. Player one can switch between mouse or keyboard control, and player 2 will default to whichever option player one is not using.

The game is only available for Windows at the moment. It was compiled using VS C++  2010 Express.

Versions:

Version 1.2 offers the following updates:

I  have a short video showcasing release version 1.2:

http://youtu.be/lzFU4PlCIkg

I'm looking for any type of feedback, especially any bugs that are encountered or if you have any issues initially running the game.

Unfortunately, I haven't been able to try my game out on many other computers yet to test my deployment DLLs. My biggest concern is whether or not including msvcp100.dll and msvcr100.dll is enough to run this program on a machine that hasn't already installed VS C++ 2010 Express.
Title: Re: My First Game: Jong (A Pong Clone)
Post by: Jesper Juhl on March 18, 2014, 08:32:15 pm
I think you may find these two links interesting/useful:
http://www.microsoft.com/en-us/download/details.aspx?id=40784
http://www.dependencywalker.com/
Title: Re: My First Game: Jong (A Pong Clone)
Post by: lightningblah on March 18, 2014, 08:49:58 pm
I think you may find these two links interesting/useful:
http://www.microsoft.com/en-us/download/details.aspx?id=40784
http://www.dependencywalker.com/

Thank you for this! I was trying to avoid forcing users into installing the redistributable package, but I think that may be naive/selfish on my part since it probably will do a much better job at preparing the user's computer than I can. My hesitance stems from the fact that when I tried sharing programs with my friends years ago, and they had to install something, it always brought up red flags that it was just another thing they would need to uninstall in the future.

With that being said, I used Dependency Walker and noticed I included the x64 versions of the files in question, so I just changed them to the correct x86 versions and updated the link above. I'm trying to get my feet wet in understanding what I'm seeing with Dependency Walker, but I'm hoping (and it looks like) I have my bases covered.

Thanks again!
Title: Re: My First Game: Jong (A Pong Clone)
Post by: zsbzsb on March 18, 2014, 08:52:21 pm
I tried it and here is what I thought.

Title: Re: My First Game: Jong (A Pong Clone)
Post by: lightningblah on March 24, 2014, 12:01:40 am
I tried it and here is what I thought.

  • Very cool sound effects, did you make them yourself?
  • Limit the framerate with VSync, at the moment the game consumes an entire core of my cpu (and burns my leg with my laptop)
  • Work on the AI, he seems to move the paddle in a very jittery fashion
  • If you want feedback on your code put it on github or bitbucket (and learn git at the same time - source control is another crucial part of development)
  • Another thing about the paddles and I don't know if it was intentional, but if I slightly move my paddle down it will go down but also move back up.
  • Preferably, don't use Media Fire, instead use a hosting site like hashcookie.net (http://www.hashcookie.net/)
  • Good job and keep up the good work with SFML

Thank you so much for the quick reply!



I know I should bite the bullet and find a way to clean up my AI plus interpolation process before I move on to a new project. The only reason I left it like this is because I plan on revisiting all of my projects and revamping them as I learn more from new projects, but it does feel lousy setting the game aside without these few things that bug me all cleaned up. I am glad the Vsync was such a quick fix! I will comment my original post when I reupload the game with as many fixes I add before the month ends.
Title: Re: My First Game: Jong (A Pong Clone)
Post by: lightningblah on March 28, 2014, 07:17:47 pm
I edited the first post with a version 1.2!

I tried to address all of the issues you mentioned zsbzsb, and again appreciate the advice. I could not use hashcookie.net for my new update because it appears to be down (as soon as you hit upload it brings you to an error page right now).

I'll be putting this game to rest for quite some time while I move onto a new project, but I have a file that I'm using to record any bugs, criticism, or suggestions people give me for the day I revisit it.

Thank you all again. I'm excited to post some early versions of my Snake clone in the months to come that I will be starting on Tuesday.

On a side note, if anyone is interested in helping me with art, music, or sound effects please email me at jon@error151.com!
Title: Re: My First Game: Jong (A Pong Clone)
Post by: Raincode on March 29, 2014, 05:21:39 pm
Not bad :)
I especially like how you already have a Menusystem implemented.
Personally, I think the sound effects are a little too much/too dense, but that's just a matter of taste.
Title: Re: My First Game: Jong (A Pong Clone)
Post by: Nexus on March 30, 2014, 12:27:19 pm
The sound effects are hilarious, especially when navigating in the menu :D
But I can imagine that it becomes annoying after some time ;)

Getting feedback to code is a good idea. Also, small projects like Pong or Snake are a great opportunity to experiment with advanced C++ concepts and OOP designs. Don't do what you already know, learn new things. I also suggest having a look at your old code and thinking about how you could possibly improve it, even if you won't. Similarly, you could have a rough idea about the code of a new project before you start developing.

When you learn these things already for small projects, you won't have to do so in bigger ones. Suddenly recognizing that a 10k code base is a huge mess beyond the possibility of reasonable refactoring can be very frustrating, especially when you've spent a lot of time in it.