Hello there. I have made a 2d maze game recently like pacman. Im going to develop a 2d fighting game now. In my maze game i used the ImageIcon to present an image, now i wanna try the Image object instead.
I have some questions before i start to to this. I have read the great tutorial at http://www.cokeandcode.com/spaceinvaderstutorial
but still i don’t understand everything. Here are my questions.
-
How do I paint some part of a big picture like a image file containing all the sprites I wanna use?
-
How does the paint() method work? I mean does the image disappear that i painted when I paint another one or can i clear the previous one and restore the background there?
-
Is the rectangle intersects technique good for collision detection between object,? or is there a better technique cause im going to do a fighting game and the pictures wont be rectangular.
Thanks // svartberg, new started game programmer.