Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

[SFML] I Finished Pong! I Can't Believe It!


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
33 replies to this topic

#1 superman3275   Crossbones+   -  Reputation: 1373

Like
18Likes
Like

Posted 27 September 2012 - 07:33 PM

I did it! Yes! I did it! I finished pong, and it works. I'm so happy! I just, can't believe it. I did it. Wow, after that much time, it's just amazing. Here's the project in visual studio: (Sorry, I don't know how to release it! If someone could message me on how to, I would be Happy :)
Project
I'm a game programmer and photo editor.

Here's Breakout:
Breakout!

If you need some photo editing done, contact me:
superman3275@gmail.com
if you want some programming help, or are recruiting for a game development team, either PM me on here or email me up there Posted Image!

Sponsor:

#2 superman3275   Crossbones+   -  Reputation: 1373

Like
4Likes
Like

Posted 27 September 2012 - 08:23 PM

I fixed it so the game ends automatically when the ball hits the top or bottom of the screen, and fixed the dropbox link :)
[Fixed] Project
I'm a game programmer and photo editor.

Here's Breakout:
Breakout!

If you need some photo editing done, contact me:
superman3275@gmail.com
if you want some programming help, or are recruiting for a game development team, either PM me on here or email me up there Posted Image!

#3 LennyLen   Crossbones+   -  Reputation: 1145

Like
4Likes
Like

Posted 27 September 2012 - 09:08 PM

Congratulations.

(Sorry, I don't know how to release it! If someone could message me on how to, I would be Happy


I don't use VS myself, but: https://www.google.com.au/search?q=how+to+deploy+vc%2B%2B

#4 Arthur Souza   GDNet+   -  Reputation: 1105

Like
0Likes
Like

Posted 27 September 2012 - 10:31 PM

Theres a click once deployment feature that even has autoupdate! You can use it too directly to dropbox, so that we can download updates to stuff you put there, search for click once publish visual studio.

And gratz!

A.

Lotus RPG Engine - My Journal: http://www.gamedev.n...die-rpg-engine/ |
Action RPG In development using XNA 4.0. | Blog in English: en.lotusrpg.com.br |

Personal blog In Portuguese: lotuzgames.wordpress.com |


#5 Servant of the Lord   Marketplace Seller   -  Reputation: 8959

Like
1Likes
Like

Posted 27 September 2012 - 10:37 PM

Congrats!

All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.

Of Stranger Flames - [indie turn-based rpg set in a para-historical French colony] | Indie RPG development journal


#6 frazchaudhry   Members   -  Reputation: 691

Like
1Likes
Like

Posted 27 September 2012 - 10:51 PM

Grats! Its always nice to finish what you started. Now you must be looking forward to your next project. :-)

#7 Bacterius   Crossbones+   -  Reputation: 3567

Like
0Likes
Like

Posted 27 September 2012 - 11:33 PM

I did it! Yes! I did it! I finished pong, and it works. I'm so happy! I just, can't believe it. I did it. Wow, after that much time, it's just amazing.

It is only the beginning. You will be amazed at what you produce in a few months' time!! Congratulations.

"The best comment is a deleted comment."
website · blog

[maintenance in progress]


#8 ByteTroll   Crossbones+   -  Reputation: 320

Like
1Likes
Like

Posted 27 September 2012 - 11:52 PM

Congrats!
▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬
I see the future in 1's and 0's
▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬▬

#9 TheChubu   Members   -  Reputation: 1092

Like
3Likes
Like

Posted 28 September 2012 - 01:09 AM

Glad you made it! I'm going to try to make it myself someday.

Next project: Skyrim clone! Nah I'm joking :P

#10 MrDaaark   Members   -  Reputation: 3503

Like
2Likes
Like

Posted 28 September 2012 - 01:10 AM

Congrats. I suggest you try something a little more complicated next. Maybe Tetris-like.

#11 BrentChua   Members   -  Reputation: 497

Like
1Likes
Like

Posted 28 September 2012 - 09:46 AM

Congratulations leveling up!

#12 Xirion   Members   -  Reputation: 170

Like
1Likes
Like

Posted 28 September 2012 - 10:16 AM

Congratulations!!, you've made the first step towards a new fascinating world.
Good luck on your trip Posted Image

#13 mistervirtue   Members   -  Reputation: 489

Like
0Likes
Like

Posted 28 September 2012 - 11:47 AM

Great Job man, I am always glad to hear when people succeed.

#14 GlenDC   Members   -  Reputation: 469

Like
1Likes
Like

Posted 28 September 2012 - 11:53 AM

Awesome man, always fun to create your first game.
Btw if you share a vs project then you can delete the following files:
  • debug
  • ipch
  • a big file with the extentsion .sdf
Good luck on your next project!

#15 EngineProgrammer   Members   -  Reputation: 291

Like
0Likes
Like

Posted 28 September 2012 - 04:05 PM

Gratz!

To change to release just click on:
Build -> Configuration Manager -> Click on 'Debug' change it to 'Release'. -> Rebuild your code which will create a new folder names Release.


If you want people to test your game when you have an .exe and image/sounds folders like you have now you can do this:
- Create a new folder on your desktop or anywhere you like: example "Pong_Game"
- Copy the .exe from the Release folder into your new folder: example "Pong_Game/Pong.exe"
- Copy your images/sounds/SFML/videos into your new folder: example "Pong_Game/Images/..."

Click on the .exe and you should be able to play your game. Posted Image If not, a folder has wrong placed wrong in the folder "Pong_Game".
So you don't need all the headers, cpp's, sdf, debug/release folder, ipch files. Those files aren't needed anyway to be able to play your game. Posted Image


~EngineProgrammer

#16 superman3275   Crossbones+   -  Reputation: 1373

Like
0Likes
Like

Posted 28 September 2012 - 05:10 PM

My problem is that I use the SFML library, and when I try to automatically link the .libs it gives me an error saying it can't find them. So it won'trelease my game.
I'm a game programmer and photo editor.

Here's Breakout:
Breakout!

If you need some photo editing done, contact me:
superman3275@gmail.com
if you want some programming help, or are recruiting for a game development team, either PM me on here or email me up there Posted Image!

#17 GameC++Expert93   Members   -  Reputation: 121

Like
0Likes
Like

Posted 28 September 2012 - 05:22 PM

Congrats! this was also my first ever game i programmed mostly to get the grasp of c++ relating to game programming.

#18 superman3275   Crossbones+   -  Reputation: 1373

Like
0Likes
Like

Posted 28 September 2012 - 05:55 PM

I just spent some time trying to get text working, but I have a problem:
I have a variable in my ball class that keeps the amountofhits, whenever I hit the paddle this increments. But, I don't know how to set my text equal to this variable:
MyString.SetText(variable);
doesn't work. Any Ideas?
(At the moment I am just displaying the number in the console.)
I'm a game programmer and photo editor.

Here's Breakout:
Breakout!

If you need some photo editing done, contact me:
superman3275@gmail.com
if you want some programming help, or are recruiting for a game development team, either PM me on here or email me up there Posted Image!

#19 GameC++Expert93   Members   -  Reputation: 121

Like
0Likes
Like

Posted 28 September 2012 - 06:03 PM

I just spent some time trying to get text working, but I have a problem:
I have a variable in my ball class that keeps the amountofhits, whenever I hit the paddle this increments. But, I don't know how to set my text equal to this variable:
MyString.SetText(variable);
doesn't work. Any Ideas?
(At the moment I am just displaying the number in the console.)


Is SetText a function u created or is it built into whatever game library ur using, if its one u created make sure ur returning the data properly in the function and that your function has the right datatype of string like this

class MyClass{
public:
string SetText();
};

im just assuming ur using a class this goes the same with plain old c++ functions though without a class declaration

Edited by GameC++Expert93, 28 September 2012 - 06:09 PM.


#20 superman3275   Crossbones+   -  Reputation: 1373

Like
0Likes
Like

Posted 28 September 2012 - 06:21 PM

It's an SFML Function of sf::String.
I'm a game programmer and photo editor.

Here's Breakout:
Breakout!

If you need some photo editing done, contact me:
superman3275@gmail.com
if you want some programming help, or are recruiting for a game development team, either PM me on here or email me up there Posted Image!




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS