Sign in to follow this  
dtank

New: questions about java! please read

Recommended Posts

dtank    122
Hi guys, im new to programming. A few weeks ago I was asking people to make a game for me (for $$$), then I thought that I rather learn programming myself and spend the $$ on books and such. ~I want to make games like the ones on Yahoo. (the ones on the site not the downloadable ones) And a few people told me "Java" would be good for that. So I got a book "Java in Easy Steps" that teaches you the basics for Java programming. ~The programs that I am currently using are SDK 1.4 and JPadPro. ++++++Questions+++++++++++ -After I am done with this book, what do you guys suggest I do? Do you know any good Java "GAME" programming books? And the question i am really concerned about is "how do online games work."? I am think of a game where people go to my site, and log in, and just like yahoo, they choose a room and in that room they join or create tables to play at. I want to know how that works. Will Java do all that? And they way Im thinking is that people send me the Username they want, and they pay me and i make that username for them so they can log in and play. Now when they pay me, do i add their username to a certain list? please help me out here, thanx

Share this post


Link to post
Share on other sites
jfclavette    1058
Java can do all that. Throw in a relational database under and you're set. Once you've learned how to program, the other issues should be fairly obvious.

Share this post


Link to post
Share on other sites
gcs584    280

Hi dtank,

Good to see someone new to Java :)

Well, there are a few different steps you could take from your current position. I would recommend that you have an idea of the Java class Hierarchy. It helps to understand how certain member functions are called and where they are called from.

For your next step, I would recommend that you try out some Java2D (java.awt.*). It's nothing to advanced, but it can be quite a lot fun. Once you've mastered that, you could probaly attempt to tackle some JOGL or Java3D (personally not recommend; others might say otherwise).

Well, from what you've written you would be looking to write applets (classes that extend the JApplet class). Basically an applet is code that is able to be run within a browser.

There are some restrictions on applets, and one of them happens to be networking. If I recall, someone would be able to logon to your application, but your application could only communicate with the server that the code is hosted on (if that makes sense). I'm not exactly sure how you're wanting to implement all this, but just bear this in the back of your mind. It might not be relevant to you.

For saving usernames/passwords, I would recommend looking into storing information in databases (JDBC).

Anyone have anything else to say (I can't really remember the restrictions on applets...too late to look now:))

Later,

GCS584

Share this post


Link to post
Share on other sites
King of Men    394
If I were you, I would not get too ambitious in the "getting paid" area for a couple of years. Nobody's going to pay you for a Tetris clone, and frankly, you'll not be doing any better than that for a year at least.

But congratulations on avoiding the "OMG lol how do i maek a MMROPG" cliche, and welcome to the forums.

Share this post


Link to post
Share on other sites
dtank    122
hey thanx for all the replys....

Im glad we have some nice people in these forums. Its really good that java can do all those things.

Ill just learn these basics then i guess those more complicated stuff wont seem so confusing like they do right now

as for "crucifixion's" post...idk..i was asking for some help and tips, not shit like that...

neways not to get off topic

and King of Men, thanx for the reply, i agree with the fact that no one will pay for the simple games that i will be making in the beginning, i was just wondering how those things work. Cas there might be something that I dont know about that might make me change my mind about learning java. I dont want to spend like 2-3 years learning java and then it turns out that it was a waste of time because i cant do some of the things that i thought i could do with java.


and i would REALLY appriciate a lil more detail on how multiplayer games work (like the card games on yahoo) ...i was talking to someone and they said something about static ip and some other stuff that i really didnt understand

Share this post


Link to post
Share on other sites
GotenRulezU    100
Do internet research. Most every java book i've seen is very boring to read. Internet sources imho are a much easier read. Although I would recommend having a good reference book.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this