Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fundamentals stuff

 
Juhan Voolaid
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Juhan Voolaid
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. That example is perfect to give me answers i am looking for.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic