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

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

0 Members and 2 Guests are viewing this topic.

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
A very nice Pong clone using SFML - 2.1
« on: September 06, 2013, 08:14:36 pm »
Hello friends!

I just finished creating my first complete game using SFML 2.1 on windows using Code::Blocks 12.11(but game is cross platform, runs on mac and linux too). I am uploading it. Please do run it and tell me what you think of it .
I don't claim that my game is very exciting or anything like that. Hope you like it. :)
If it's not working, please let me know.

CHEERS!

Link to download (Windows only)

Here are a few screenshots:







A gameplay video:
« Last Edit: November 26, 2013, 04:50:32 am by The Illusionist Mirage »

Sorokya

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Created a Pong clone
« Reply #1 on: September 07, 2013, 10:55:12 pm »
The project looks nice, it would be cool if you uploaded the source code, so I could try it out.

Clockwork

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Created a Pong clone
« Reply #2 on: September 08, 2013, 05:53:51 am »
Yeah, I would also like to see the source code please!

It looks like a nice remake and I'm curious how you did it, as I'm pretty new to SFML.

Thanks!

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
Re: Created a Pong clone
« Reply #3 on: September 08, 2013, 09:05:45 am »
The project looks nice, it would be cool if you uploaded the source code, so I could try it out.

Yeah, I would also like to see the source code please!

It looks like a nice remake and I'm curious how you did it, as I'm pretty new to SFML.

Thanks!


I'd be very glad if you would first download and see if my game is running because it may contain glitches and bugs. If there are indeed errors please report them to me, I'd fix them and then I'll definitely post the source. :)

CHEERS!

MadMartin

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Re: Created a Pong clone
« Reply #4 on: September 08, 2013, 09:40:39 am »
I'd be very glad if you would first download and see if my game is running because it may contain glitches and bugs.
There are some people who can't do anything with a windows executable and therefore are asking for the source  ;)

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
Re: Created a Pong clone
« Reply #5 on: September 08, 2013, 02:47:53 pm »
I'd be very glad if you would first download and see if my game is running because it may contain glitches and bugs.
There are some people who can't do anything with a windows executable and therefore are asking for the source  ;)

What about you, did you run my game? I am insisting that someone run my game since in a lot of computers that I tried to run it, the game either didn't run or was very slow.

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Created a Pong clone
« Reply #6 on: September 08, 2013, 03:16:24 pm »
There are people running Linux and OS X, they can't run Windows programs(we actually can, and I've yet to encounter SFML or GL game that doesn't run on WINE, this one included) so he's asking for source code to compile it on his machine.
Back to C++ gamedev with SFML in May 2023

TeaBag

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: A very nice Pong clone using SFML - 2.1
« Reply #7 on: September 08, 2013, 11:12:53 pm »
I'm trying to create my own Pong game too! It'd be great if you could upload your source code so I could check it out when (if) I encounter a problem.

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: A very nice Pong clone using SFML - 2.1
« Reply #8 on: September 09, 2013, 12:01:40 am »
You can also take a look at the official pong example.

Clockwork

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: A very nice Pong clone using SFML - 2.1
« Reply #9 on: September 09, 2013, 05:04:26 am »
Sorry, I wasn't able to download it before as I was busy.

I just tried it though and it runs fine, really smoothly actually, you have a nice remake on your hands! 

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 #10 on: September 09, 2013, 07:54:49 am »
Hey guys

Sorry for being really rude and not posting the source before.  :-[

Well I have created a repository on GitHub where you can find the source and the resources(images, fonts and sounds) used and what's amazing is it is fully documented!

Sorry, I wasn't able to download it before as I was busy.

I just tried it though and it runs fine, really smoothly actually, you have a nice remake on your hands!

I am glad you liked it since this is my first ever complete game project. :)

And one more thing I'd like to ask everyone - how to I license my program as open source, freely distributive and modifiable(probably under GPL I guess).

CHEERS! :)
« Last Edit: September 10, 2013, 01:02:39 pm by The illusionist mirage »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
AW: A very nice Pong clone using SFML - 2.1
« Reply #11 on: September 09, 2013, 10:54:52 am »
You might want to put it under something like libpng/zlib or MIT license. With GPL you restrict the use to GPL projects only.
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: AW: A very nice Pong clone using SFML - 2.1
« Reply #12 on: September 09, 2013, 11:19:15 am »
You might want to put it under something like libpng/zlib or MIT license. With GPL you restrict the use to GPL projects only.

Okay, thanks! :)

And did you by any chance see or run my game? Please tell me how it is. A lot of my real life friends say it sucks.

DarkYoung

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: A very nice Pong clone using SFML - 2.1
« Reply #13 on: September 09, 2013, 12:19:56 pm »
Hi!

Game looks really good. Only font is a bit unreadable.

But i found some bugs :( :
-i can't start a new game with AI after finishing one. Looks like you don't reset level.
-when i choose play vs human, the humancontrols screen appear and it say "press any key to continue" but when i press any key, nothing happen. Only when i press enter im back to menu. This problem appear after i finish a game with AI so it could be connected with first problem
-not a bug but: ball is not center at the start.
-not a bug again but: ball always go in same direction after start
-collisions looks weird
-when point go to 10 number overlay on middle line


After all, game looks good, i like that GUI system. But you need to work more with it. Not much, but still a bit. Good work!

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 #14 on: September 09, 2013, 12:38:23 pm »
Hi!

Game looks really good. Only font is a bit unreadable.

But i found some bugs :( :
-i can't start a new game with AI after finishing one. Looks like you don't reset level.
-when i choose play vs human, the humancontrols screen appear and it say "press any key to continue" but when i press any key, nothing happen. Only when i press enter im back to menu. This problem appear after i finish a game with AI so it could be connected with first problem
-not a bug but: ball is not center at the start.
-not a bug again but: ball always go in same direction after start
-collisions looks weird
-when point go to 10 number overlay on middle line


After all, game looks good, i like that GUI system. But you need to work more with it. Not much, but still a bit. Good work!

Actually, I've already fixed the following bugs you pointed out but have not yet updated the source on my repos and not re-uploaded the exe:
-> problem with resetting the level.
-> problem with play vs human option
-> ball going in same direction
-> overlaying of score with middle line

And regarding the collision, I'll try to reconsider my approach again.

Thank you very much DarkYoung! I am really encouraged by your corrections to make it more better. I'll fix them as soon as I can. :)