Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (407)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  New - Making Friends!  (Read 1192 times)
0 Members and 1 Guest are viewing this topic.
Offline Xeno360

Junior Newbie





« Posted 2009-03-16 07:54:34 »

Hello everyone. Im new to programming in java. Figured id establish a nice forum to be a regular pest on. Anyways.

I've just finished reading the book "Beginning programming java for dummies".

Was a great read but very lack of knowledge. after the first 10 chapters everything became repetitive and was just a review pretty much. I picked up on alot but still need more information.

Can someone refer me to a post, or perhaps a link that will give me some src's/examples of some java that is heavily commented? I believe hands on is the best approach .

Preferably simple applications or games would be great.

I use JCreator for a compiler. (Please Suggest another if theres anything better)

Im pretty much looking to learn java to make some fun games when people are bored Tongue.

I've made games on a site called "Byond" for about 3 years. and just recently I came to realize how close thier language "DM" is to java. pretty much its all the same except procs are methods.. and everything is labled different Tongue. so help me learn!! Smiley.

Also if anyone has any other suggestions on another great read to get me started please let me know. thanks.
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 50
Projects: 15


★★★★★


« Reply #1 - Posted 2009-03-16 09:20:15 »

Also if anyone has any other suggestions on another great read to get me started please let me know. thanks.

I'd highly recommend the book "Developing Games in Java" by David Brackeen, although a bit old now, its still one of the best java game books I've come across. Covers a wide range of topics and is a good introduction to general game development with java.
Offline princec
« League of Dukes »

JGO Kernel


Medals: 196
Projects: 3


Eh? Who? What? ... Me?


« Reply #2 - Posted 2009-03-16 10:20:21 »

And try Eclipse out.

Cas Smiley

Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline Ranger
« Reply #3 - Posted 2009-03-16 10:42:48 »

I'd highly recommend the book "Developing Games in Java" by David Brackeen, although a bit old now, its still one of the best java game books I've come across. Covers a wide range of topics and is a good introduction to general game development with java.

Killer Game Programing in Java is also a good book (once you know the basics of Java):
http://books.google.com.au/books?id=SVHVgbeMVvoC&dq=killer+game+programing+in+java&printsec=frontcover&source=bn&hl=en&ei=ZR6-SY6dK5z47AOnoZjuBA&sa=X&oi=book_result&resnum=4&ct=result
Offline gouessej

JGO Ninja


Medals: 33
Projects: 1


TUER


« Reply #4 - Posted 2009-03-16 10:48:41 »

Can someone refer me to a post, or perhaps a link that will give me some src's/examples of some java that is heavily commented? I believe hands on is the best approach .

Preferably simple applications or games would be great.
Go to the FGF players' portal, I have put about 40 open source games written in Java, it might help you. Good luck.

Offline cylab

JGO Knight


Medals: 30



« Reply #5 - Posted 2009-03-16 11:54:06 »

I use JCreator for a compiler. (Please Suggest another if theres anything better)

JCreator is an IDE (Integrated Development Environment). A compiler is usually just a commandline tool to convert the source in some kind of binary language.

Other good free IDEs are Netbeans (my favorite) and Eclipse (currently biggest market share!?) like Cas already mentioned.

Mathias - I Know What [you] Did Last Summer!
Offline Xeno360

Junior Newbie





« Reply #6 - Posted 2009-03-16 17:55:24 »

Thanks for the replys. Im gonna try out the other IDEs and see how they feel. I may become a regular newb looking for help after i get started and finish another book or 2. Thanks for your help guys.  Smiley.
Offline h3ckboy
« Reply #7 - Posted 2009-03-16 18:33:44 »

I also read that book, I (and others Cheesy) can vouch for how little I llearned from it.

I learned about 90% of what I learned from google Smiley.(I know it it not acutally google but I am being simple)

also I found that when I came back to that book, I found out some really useful stuff which I had skimmed over.


P.S: I dont get why you named this thread that?
Offline Eli Delventhal
« League of Dukes »

JGO Kernel


Medals: 39
Projects: 12


Game Engineer


« Reply #8 - Posted 2009-03-16 19:28:09 »

I recommend having a look at Kev's site: http://www.cokeandcode.com and have a looksee at the tutorials and the free source on there. The Space Invaders tutorial should be specifically helpful.

See my work:
OTC Software
Offline Xeno360

Junior Newbie





« Reply #9 - Posted 2009-03-17 08:22:50 »

So i was dipping my feet into another read. And was doing an excercise.

"Use what you learned and make somthing or other"

Learned about.. variables, fields. and whatever else. So i figured "hm. ill make a pretend time zone that skips ten minited every second.

Anyways it doesnt work. And here i am Smiley. Im not sure but after i commented out stuff and changed things around ive come to the conclusion int's cant be altered? Lmao. idk im a slow learner sry. this is my 1st week at trying to learn Smiley. well here it is.









class Timee {
    public static void main(String[] args) {
       boolean Count=true;
       int min = 0;
       int hr = 5;
       int day = 1;
       int month = 1;
       
       while(Count){
          //System.out.println("Loop restarted");
          min ++;
          if(min >= 60);
             min = 0;
             hr+=1;
             if(hr >= 24);
                hr=0;
                day+=1;
                if(day==31);
                   month+=1;
                   if(month==12);
                      month=1;
          if(hr==6){
             System.out.println("Good morning! It's 6 AM!");
          }
          else if(hr==21){
             System.out.println("Good night! It' 9 PM.");
          }
          try {
             Thread.sleep(100);
          }
             catch (InterruptedException x) {
             
             }

       }
    }
}








What did i learn? Let the pros help me Smiley. lol.
Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 50
Projects: 15


★★★★★


« Reply #10 - Posted 2009-03-17 09:27:38 »

just had a quick look at your code it seems you are using the if statements wrong.

doing a 
1  
if(min >= 60);

will do nothing as the ";" part ends the if, you must use brackets to execute multiple lines

e.g.
1  
2  
3  
4  
if (min >= 60) {
    // code in here will be executed, if true
   System.out.println("Hello World!");
}


or if you only want to test one line with the if you can do

1  
2  
if (min >= 60)
System.out.println("Hello World!");


However its best practice to always use brackets when using the if statement.
Offline Xeno360

Junior Newbie





« Reply #11 - Posted 2009-03-17 17:45:17 »

Awesome. Thanks

Output:

Good morning! It's 6 AM!
Good night! It' 9 PM.


Works great Smiley.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (94 views)
2013-05-17 21:29:12

alaslipknot (102 views)
2013-05-16 21:24:48

gouessej (132 views)
2013-05-16 00:53:38

gouessej (127 views)
2013-05-16 00:17:58

theagentd (138 views)
2013-05-15 15:01:13

theagentd (126 views)
2013-05-15 15:00:54

StreetDoggy (167 views)
2013-05-14 15:56:26

kutucuk (189 views)
2013-05-12 17:10:36

kutucuk (192 views)
2013-05-12 15:36:09

UnluckyDevil (199 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.161 seconds with 21 queries.