By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,889 Members | 1,373 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,889 IT Pros & Developers. It's quick & easy.

open source pong or equally simple game

P: n/a
I was talking to my uncle the other day about getting into programming
games and he recommended to start teaching myself with really simple
games, like Pong simple. So I looked on google and gnu.org and a few
other places and can't seem to find an open source pong clone. I did
find something called 3D Pong, but I'm thinking that would be a bit
more complicated. Can anyone point me in the right direction for
finding such an open source game in C?

Dec 22 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Dr_Locke_Z2A wrote:
I was talking to my uncle the other day about getting into programming
games and he recommended to start teaching myself with really simple
games, like Pong simple. So I looked on google and gnu.org and a few
other places and can't seem to find an open source pong clone. I did
find something called 3D Pong, but I'm thinking that would be a bit
more complicated. Can anyone point me in the right direction for
finding such an open source game in C?


1) You cannot write Pong in portable standard C.
2) So, you may ask again in a newsgroup for your implementation.
3) googling for "pong C source" was halfway successful from my point
of view -- how were you able to miss the article series? (No, it is
not good C but it may be what _you_ need.)

Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
Dec 22 '05 #2

P: n/a
Michael Mair wrote:
Dr_Locke_Z2A wrote:
[snip]

1) You cannot write Pong in portable standard C.
Not entirely true. Using printf and the escape sequence for the
backspace key you could implement a fairly workable version that is very
close to standard C, however I don't think it would be very playable. It
might be a good starting point at learning the algorithms involved, however.
2) So, you may ask again in a newsgroup for your implementation.
3) googling for "pong C source" was halfway successful from my point
of view -- how were you able to miss the article series? (No, it is
not good C but it may be what _you_ need.)

Cheers
Michael


There are several resources dedicated to game development, each ranging
from platform specific to platform independant. Check on Amazon.com as
well as your local bookstore (Borders has quite a selection on this topic).

Joe
Dec 23 '05 #3

P: n/a
Joe Estock wrote:

Michael Mair wrote:
Dr_Locke_Z2A wrote:

[snip]


1) You cannot write Pong in portable standard C.


Not entirely true. Using printf and the escape sequence for the
backspace key you could implement a fairly workable version that is very
close to standard C, however I don't think it would be very playable. It
might be a good starting point at learning the algorithms involved, however.


Well, given that backspacing will limit you to a single line of display
(assuming that you have a "display" which can backspace), it will be even
more boring as you can't take any input from the user without pausing
every time and waiting for Enter to be pressed (which will make the
backspace issue moot as the cursor will probably advance to the next line
at that point).

[...]

--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>

Dec 23 '05 #4

P: n/a
Kenneth Brody wrote:
Joe Estock wrote:
Michael Mair wrote:

[snip]

1) You cannot write Pong in portable standard C.


Not entirely true. Using printf and the escape sequence for
the backspace key you could implement a fairly workable
version that is very close to standard C, however I don't
think it would be very playable. It might be a good starting
point at learning the algorithms involved, however.


Well, given that backspacing will limit you to a single line of
display (assuming that you have a "display" which can
backspace), it will be even more boring as you can't take any
input from the user without pausing every time and waiting for
Enter to be pressed (which will make the backspace issue moot as
the cursor will probably advance to the next line at that
point).


And who says that there is a terminal device capable of back
spacing? Teletypes couldn't. I also had to handle some CRT
terminals that couldn't. Who says that any output device is
connected? None of these things are specified by the standard.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Dec 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.