I started learning java few days ago and started building 2d games. The first was pong, now I'm creating brick breaker game.
You can download it from here:
breakout.jar - 21.5 Kb
The game might be buggy, it's far from finished.
I'm looking for advice on learning java programming (on whole, not just game programming) from some more experienced java developers. If you know some good articles/books please tell.
Also I'd like to ask what common mistakes do beginners make in java?
Java programming (advice, suggestions needed).
Java programming (advice, suggestions needed).
Working on game: Marrbles (Currently stopped).
Re: Java programming (advice, suggestions needed).
Maybe try http://mindview.net/Books/TIJ4 .
Btw, I had somewhere very nice Java book about 2D graphics programming, if I find it I will let you know.
edit:
Got it, it's:
Computer Graphics for Java Programmers
Second Edition, Leen Ammeraal, Hogeschool Utrecht, Kang Zhang
University of Texas at Dallas
btw, check your forum mailbox
Btw, I had somewhere very nice Java book about 2D graphics programming, if I find it I will let you know.
edit:
Got it, it's:
Computer Graphics for Java Programmers
Second Edition, Leen Ammeraal, Hogeschool Utrecht, Kang Zhang
University of Texas at Dallas
btw, check your forum mailbox
Re: Java programming (advice, suggestions needed).
Don't know where to click on that page to download....anyways
Well as learning the language...just keep coding. If you can programm any other language is nothing special really. And C++ is really not that far away from Java.
Concept wise its pretty much the same. But interfaces in java are somewhat special. You can do some crazy stuff with them which would take way more time in c++.
But you probably knew that already. And Generics are basicly templates as you know them from c++.
Edit: Oh and threading is a breeze in java
Besides you should take a look at all the java standard libs
Well as learning the language...just keep coding. If you can programm any other language is nothing special really. And C++ is really not that far away from Java.
Concept wise its pretty much the same. But interfaces in java are somewhat special. You can do some crazy stuff with them which would take way more time in c++.
Code: Select all
interface myinterface {
public void dostuff();
}
public class Test {
public int i;
public static void main(String[] args) {
Test t = new Test();
t.run();
}
void run() {
i = 5;
func(new myinterface() {
@Override
public void dostuff() {
System.out.println("DATA: "+Test.this.i);
}
});
}
public void func(myinterface i) {
i.dostuff();
}
}
Edit: Oh and threading is a breeze in java
Besides you should take a look at all the java standard libs
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Re: Java programming (advice, suggestions needed).
Download?! Piracy?! I am filling now report form to FBI and SOPA.Sudi wrote:Don't know where to click on that page to download....anyways
This is nice and thick book, worth of investing these few dollars in buying one.
Re: Java programming (advice, suggestions needed).
lol...talking about his game...kazymjir wrote:Download?! Piracy?! I am filling now report form to FBI and SOPA.Sudi wrote:Don't know where to click on that page to download....anyways
This is nice and thick book, worth of investing these few dollars in buying one.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Re: Java programming (advice, suggestions needed).
Thanks for all responses so far. If you have anything else to say, please
Oh, and yeah.. I forgot that most of you can't read lithuanian, so here's a new link with a bit updated game: http://dl.dropbox.com/u/29244943/breakout.jar
@Sudi: I haven't yet written interfaces myself so far. But they look similar to c++ abstract classes.
And this:
Looks strange a bit, though I understand what it does.
PS. I used this http://pages.cs.wisc.edu/~hasti/cs368/JavaTutorial/ so far, with a combination of samples I found around the net.
Oh, and yeah.. I forgot that most of you can't read lithuanian, so here's a new link with a bit updated game: http://dl.dropbox.com/u/29244943/breakout.jar
@Sudi: I haven't yet written interfaces myself so far. But they look similar to c++ abstract classes.
And this:
Code: Select all
void run() {
i = 5;
func(new myinterface() {
@Override
public void dostuff() {
System.out.println("DATA: "+Test.this.i);
}
});
}
PS. I used this http://pages.cs.wisc.edu/~hasti/cs368/JavaTutorial/ so far, with a combination of samples I found around the net.
Working on game: Marrbles (Currently stopped).
Re: Java programming (advice, suggestions needed).
Serengeor, sent!
About Lithuania, it remembers me a great poem of Adam Mickiewicz:
About Lithuania, it remembers me a great poem of Adam Mickiewicz:
Lithuania, my country! You are as good health:
How much one should prize you, he only can tell
Who has lost you. Your beauty and splendour I view
And describe here today, for I long after you.