You want to make Pong but you don't have any code? Write it yourself! A year ago I wanted to make an break out clone but I didn't had any code. So What? Make you're own. I wrote the entire game under DOS and it ran like hell! If you want to learn programming in Windows and you know how to work with C/C++ buy or download this boek: Tip of The Windows Game Programming Gurus by Andre LaMothe. It's a nice book and it explains lots of things involved in creating games. The principal of Pong is easy:
Draw a ball and give it an direction. Move the ball every time a tiny bit and check if it hits a paddle or a wall. When this happens calcute the new course and voila. You have you're Pong ready. This should be no more than a couple hundred lines. Since I bought the book I'm planning a Pong but I haven't got any code yet because I received the book just a couple days back.
You have to find good resources to learn you game programming before you can start making things like Pong or much harder.
: i want to make the game pong : and i don"t have the code : : : Please if anyone have it send it : : : Hey Morpheus, SandHawk make a great point--the best thing to do is write the code yourself. If you decide to do this, you're going to need to decide on a language and development tool. Normally, these cost money, but...you can get Java for free from Sun's java site (www.java.sun.com). You can get a great *free* Java development environment called "BlueJ" from www.bluej.org. You can also find good Java tutorials on-line:
: : Hey Morpheus, : : SandHawk make a great point--the best thing to do is write the code yourself. If you decide to do this, you're going to need to decide on a language and development tool. Normally, these cost money, but...you can get Java for free from Sun's java site (www.java.sun.com). You can get a great *free* Java development environment called "BlueJ" from www.bluej.org. : : You can also find good Java tutorials on-line: : : : : http://java.sun.com/docs/books/tutorial/ : : http://homepages.unl.ac.uk/~wrightc/tyj/ : : http://sunsite.utk.edu/java/docs/tutorial/ : : http://www.sdsu.edu/doc/java-AWT-Tutorial/ : : : : If you have questions, you can email me at [email protected] : : : : : Hello, : : I have two questions regarding Java, One can it be complied to be stand alone, Two how hard is it to learn? : : : Thanks, : Roger A. Mayers IC3, MOUS, A+ : e-mail [email protected]
Hi Roger, I'll do my best to answer your questions--but I'm not much of an expert on Java's internal workings. Before we get into the details, let's make sure we're talking about the same things. First, by "compiled", I assume you mean "turned into an executable containing only machine-native code." Second, I'm guessing that by "stand alone", you mean "would work on any machine capable of running an executable". So, can Java be compiled into a stand alone application? Not really. First, it isn't compiled in the above sense, and second, all Java applications must run within a "Java Virtual Machine" (JVM) that understands the language. If you don't have a JVM, you can't run Java. I don't want to spam you with a bunch of unwanted information, so that's all I'll say for now. If you want more details, let me know. Now, if you're worried that any Java applications you might write won't work on other peoples' machines, you can relax. The JVM automatically comes with Windows 9x/2000. I'm pretty sure the latest MacOS "bundles" it. I'd be surprised if it wasn't included with LINUX distributions. With Java becoming so widespread on the 'Net, OS distributors are realizing that they need to include it to stay competetive (after all, how mad would you be if you installed Windows XP and suddenly lost the ability to use a few million web pages?). I hope that answers your first question. As to how hard the language is to learn, the answer is, "that depends". If you have some experience with object oriented programming, it's pretty easy--certainly simpler than C++, and in a lot of ways, easier to grasp than Visual Basic. Also, like all languages, it does some things better than others. If your ultimate goal is to write killer 3D graphics games, Java might not be the best choice. Other than that, I'd say it's well suited to pretty much everything. I hope this helps. If you're interested in learning more, let me know. Also, I've been toying with the idea of starting a simple "step-by-step guide to Java game programming." It would be designed for beginners who want to get into programming but have *no* money to buy commercial compilers and IDEs. If you (or anyone else) would be interested, get in touch with me via this message board or through email: [email protected] Sorry this post was so long--I hope that it gave you what you needed.
Comments
Tip of The Windows Game Programming Gurus by Andre LaMothe. It's a nice book and it explains lots of things involved in creating games. The principal of Pong is easy:
Draw a ball and give it an direction. Move the ball every time a tiny bit and check if it hits a paddle or a wall. When this happens calcute the new course and voila. You have you're Pong ready. This should be no more than a couple hundred lines. Since I bought the book I'm planning a Pong but I haven't got any code yet because I received the book just a couple days back.
You have to find good resources to learn you game programming before you can start making things like Pong or much harder.
Good Luck,
Sand Hawk
Member of the Stupid Coders,
http://www.stupidcoders.cjb.net
- Earth is 98% full. Please delete anybody you can.
: and i don"t have the code
:
:
: Please if anyone have it send it
:
:
:
Hey Morpheus,
SandHawk make a great point--the best thing to do is write the code yourself. If you decide to do this, you're going to need to decide on a language and development tool. Normally, these cost money, but...you can get Java for free from Sun's java site (www.java.sun.com). You can get a great *free* Java development environment called "BlueJ" from www.bluej.org.
You can also find good Java tutorials on-line:
http://java.sun.com/docs/books/tutorial/
http://homepages.unl.ac.uk/~wrightc/tyj/
http://sunsite.utk.edu/java/docs/tutorial/
http://www.sdsu.edu/doc/java-AWT-Tutorial/
If you have questions, you can email me at [email protected]
: - Earth is 98% full. Please delete anybody you can.
:
:
PLEASE!!!!! DON'T DELETE ME!!! I'll Run faster I swear!!!
: SandHawk make a great point--the best thing to do is write the code yourself. If you decide to do this, you're going to need to decide on a language and development tool. Normally, these cost money, but...you can get Java for free from Sun's java site (www.java.sun.com). You can get a great *free* Java development environment called "BlueJ" from www.bluej.org.
: You can also find good Java tutorials on-line:
:
: http://java.sun.com/docs/books/tutorial/
: http://homepages.unl.ac.uk/~wrightc/tyj/
: http://sunsite.utk.edu/java/docs/tutorial/
: http://www.sdsu.edu/doc/java-AWT-Tutorial/
:
: If you have questions, you can email me at [email protected]
:
:
Hello,
I have two questions regarding Java, One can it be complied to be stand alone, Two how hard is it to learn?
Thanks,
Roger A. Mayers IC3, MOUS, A+
e-mail [email protected]
: : SandHawk make a great point--the best thing to do is write the code yourself. If you decide to do this, you're going to need to decide on a language and development tool. Normally, these cost money, but...you can get Java for free from Sun's java site (www.java.sun.com). You can get a great *free* Java development environment called "BlueJ" from www.bluej.org.
: : You can also find good Java tutorials on-line:
: :
: : http://java.sun.com/docs/books/tutorial/
: : http://homepages.unl.ac.uk/~wrightc/tyj/
: : http://sunsite.utk.edu/java/docs/tutorial/
: : http://www.sdsu.edu/doc/java-AWT-Tutorial/
: :
: : If you have questions, you can email me at [email protected]
: :
: :
: Hello,
:
: I have two questions regarding Java, One can it be complied to be stand alone, Two how hard is it to learn?
:
:
: Thanks,
: Roger A. Mayers IC3, MOUS, A+
: e-mail [email protected]
Hi Roger,
I'll do my best to answer your questions--but I'm not much of an expert on Java's internal workings.
Before we get into the details, let's make sure we're talking about the same things. First, by "compiled",
I assume you mean "turned into an executable containing only machine-native code." Second, I'm
guessing that by "stand alone", you mean "would work on any machine capable of running an executable".
So, can Java be compiled into a stand alone application? Not really. First, it isn't compiled in the above
sense, and second, all Java applications must run within a "Java Virtual Machine" (JVM) that understands
the language. If you don't have a JVM, you can't run Java. I don't want to spam you with a bunch of unwanted
information, so that's all I'll say for now. If you want more details, let me know.
Now, if you're worried that any Java applications you might write won't work on other peoples' machines,
you can relax. The JVM automatically comes with Windows 9x/2000. I'm pretty sure the latest MacOS
"bundles" it. I'd be surprised if it wasn't included with LINUX distributions. With Java becoming so
widespread on the 'Net, OS distributors are realizing that they need to include it to stay competetive
(after all, how mad would you be if you installed Windows XP and suddenly lost the ability to use a few
million web pages?).
I hope that answers your first question.
As to how hard the language is to learn, the answer is, "that depends". If you have some experience with
object oriented programming, it's pretty easy--certainly simpler than C++, and in a lot of ways, easier to
grasp than Visual Basic. Also, like all languages, it does some things better than others. If your ultimate
goal is to write killer 3D graphics games, Java might not be the best choice. Other than that, I'd say it's well
suited to pretty much everything.
I hope this helps. If you're interested in learning more, let me know. Also, I've been toying with the
idea of starting a simple "step-by-step guide to Java game programming." It would be designed for
beginners who want to get into programming but have *no* money to buy commercial compilers and IDEs.
If you (or anyone else) would be interested, get in touch with me via this message board or through
email: [email protected]
Sorry this post was so long--I hope that it gave you what you needed.
Kreitler
:
: