Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
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 1484 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: 74
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

JGO Kernel


Medals: 343
Projects: 3
Exp: 16 years


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!
Legends of Yore - The Casual Retro Roguelike
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
« 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 Ninja


Medals: 38



« 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

JGO Coder


Medals: 5



« 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

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


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!
Legends of Yore - The Casual Retro Roguelike
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
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.

 

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

The first screenshot will be displayed as a thumbnail.

Riven (7 views)
2014-07-29 12:53:52

Dwinin (7 views)
2014-07-29 10:59:34

E.R. Fleming (23 views)
2014-07-29 03:07:13

E.R. Fleming (9 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (51 views)
2014-07-17 23:47:54
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!