Want help in developing my first game in java!!
I want to develop a tetris game in java..can any one help me on this..basically i m new to java programming, i want to know abt the graphical part ..how to make that.. i will code the rest..I want to make an application rather than an applet..
look at the Java2D demo that comes with the JDK
it has lots of source code and just about everything you'll need to do in Tetris (technology wise) is in there, except the game logic.
when you're ready to move into 3D and heavier apps, try this book:
Practical Java Game Programming
http://www.amazon.com/exec/obidos/tg/detail/-/1584503262/102-3570681-1096110?v=glance
not to be rude, but this is very basic game programming stuff, you should probably grab a book (or article) that discusses collision detection in 2D, google that and check back with us
Hello,You can use contains(....) method of java.awt.Rectangle class ( http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Rectangle.html). You will prbably need to represent your blocks as rectangles or corner points and test with the contains(....) methods.