Hi I am still having lack of fundamental knowladge about java (general), classes and swing. So prepare yourself for stupid questions. Firstly i just say what i want to do. I want to make a graphical 2D game where are a main character (player), opponent characters (AI) and a map. I am planning to design this so:
don't really know should i use extends gamepanel or implements gamePanel --what is the difference? Does only the parent class (gamePanel) have a paintComponent() method? For example with what method in map class can i draw something (e.g. bacground color) to the gamePanel? OK .. don't know what more to ask now. I have so much things that i want asers to. So pleas give me some advice to my problems ... don't know where to start.
Joined: Jan 14, 2004
There are a lot of ways of putting things together to make what you want. The fun comes with practice in making things. Here's something to help you get started.
[ March 12, 2004: Message edited by: Craig Wood ]
Joined: Nov 18, 2003
Thank you. That example is perfect to give me answers i am looking for.