473,407 Members | 2,629 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

open source pong or equally simple game

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
4 5856
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Xad | last post by:
Hi, i'm looking for java code for a really simple, basic Pong game. As simple as possible - even just two paddles and a ball bouncing will do. Can anyone help? Thanks
0
by: junglist | last post by:
Hi, i have created a Pong game Application where two players control their pads using the keyboard. the problem is that one player is using the action keys VK_UP and VK_DOWN in keyPressed() and...
7
by: Brandon J. Van Every | last post by:
Anyone know of any "good" open source C# game projects out there? Something that actually has a game engine and some content done, so I can just fiddle with it and do interesting / goofy things. ...
0
by: Will | last post by:
I am looking to include a pong game or similar in an application I have developed. I know it's possible to write a pong style game in VB is it possible to write a pong style game in VBA? & can...
7
by: DaVinci | last post by:
I am writing a pong game.but met some problem. the ball function to control the scrolling ball, void ball(int starty,int startx) { int di ,i; int dj,j; di = 1; dj = 1; i = starty;
6
by: =?Utf-8?B?U2FtZWVrc2hh?= | last post by:
Hi, I want to write a simple .net program to open a URL, fill in fields, and click on a button to submit it using .net 1.1 framework. Can someone help in suggesting the libraries I should use?...
26
by: I Hate My Computer | last post by:
I need help with some VB code. Ultimately I would like it in VBA because that's all I have. I am making a fun game to hide in all of my docs. It is a pong like game but you need to have your pad...
10
by: Max Kubierschky | last post by:
Hello, I'm planning to give a game programming course for kids of mixed age. For this, I am looking for an open source 2D game development kit. I am also willing to participate in the...
6
by: drsmooth | last post by:
im just starting to work on AI things and i started with a pong game... i came up with a system that every time the ball hits a wall or a paddle it calls the alert() method of the AIController...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.