Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > open source pong or equally simple game

Reply
Thread Tools

open source pong or equally simple game

 
 
Dr_Locke_Z2A
Guest
Posts: n/a
 
      12-22-2005
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?

 
Reply With Quote
 
 
 
 
Michael Mair
Guest
Posts: n/a
 
      12-22-2005
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.
 
Reply With Quote
 
 
 
 
Joe Estock
Guest
Posts: n/a
 
      12-23-2005
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
 
Reply With Quote
 
Kenneth Brody
Guest
Posts: n/a
 
      12-23-2005
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: <private.php?do=newpm&u=>

 
Reply With Quote
 
Chuck F.
Guest
Posts: n/a
 
      12-23-2005
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/>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Game programming for kids: looking for open source 2D game developmentkit Max Kubierschky Python 10 03-31-2007 07:18 PM
pong game,while loop statement solution DaVinci C++ 7 03-26-2006 12:17 AM
Source of Network Pong in Java please ? freeposte Java 1 01-15-2006 06:27 PM
looking to find out how to write equally columns on a page repairs HTML 21 07-27-2005 10:56 PM
How to make threads share CPU (almost) equally? TheOne Java 3 03-10-2005 02:14 PM



Advertisments