GameObject class tree (if such a thing existst)
Posted: Thu Oct 02, 2008 12:31 pm
I am creating my game in java, but i dont think it makes much difference in this case.
I would like to know how you make you GameObject class tree... i came up with that name myself. What i mean is the tree of charactors (like you(the player), enemies, stuff)
rigth now mine looks like this:
GameObject > MovingGameObject > Ball
______________________________> bullet
(the ball it the thing you control, i think there will be two of those (2 players))
So that looks pretty logical to me... the problem is that there (so far) is no difference between Ball and Bullet, actully they are the exact same as MovingGameObject. So, is my tree an overkill, is it entirely wrong, or is it a good idea to make alot different GameObjects for the manageability ?(english is not my native language, and that word was from the dictonary... dont know if it makes sense)
Hope my class tree makes sense.
I would like to know how you make you GameObject class tree... i came up with that name myself. What i mean is the tree of charactors (like you(the player), enemies, stuff)
rigth now mine looks like this:
GameObject > MovingGameObject > Ball
______________________________> bullet
(the ball it the thing you control, i think there will be two of those (2 players))
So that looks pretty logical to me... the problem is that there (so far) is no difference between Ball and Bullet, actully they are the exact same as MovingGameObject. So, is my tree an overkill, is it entirely wrong, or is it a good idea to make alot different GameObjects for the manageability ?(english is not my native language, and that word was from the dictonary... dont know if it makes sense)
Hope my class tree makes sense.