News: Go to the wiki and do the Flying Ship tutorial May 22, 2012, 01:33:55 pm
Welcome, Guest. Please login or register. *

First impression
Pages: 1
  Send this topic  |  Print  

  First impression
Author Message
0 Members and 1 Guest are viewing this topic.
biffone
Jr. Member
**
Offline Offline

Posts: 23


View Profile
« on: August 24, 2007, 07:16:37 am »

Hi

I've looked of the code of the 2d engine and i have some first suggestions.

1. The rendering code is too link to Java2D. I think it is better to separate the rendering part . I've also have experience in JOGL and i can create the JOGL (openGL ) renderer
2.  I think it is better if we separate module :
   * renderer
   * sound
   * logic
   * etc
Now i've seen some classes that contains some logic in the same package with classes that render . I know that you experiment now so maybe this is the reason why the separation it is not clear.
If we separate it will be more easy to unit test each module and to create alternative to see what if the best. For example if we discover that Java2D is not so fast for what we need we can change the renderer part without touching the rest of the code. AThe same for Audio, AI etc.









 
Logged
2playgames
OpenWar Project Founder
Administrator
Sr. Member
***
Offline Offline

Posts: 857


Busy busy busy busy busy


View Profile WWW
« Reply #1 on: August 24, 2007, 07:09:27 pm »

Quote
The rendering code is too link to Java2D. I think it is better to separate the rendering part . I've also have experience in JOGL and i can create the JOGL (openGL ) renderer
indeed, i had the idea to turn classes like GameGraphics, GameImage, etc. into an interface and then add a Java2D implementation and OGL implementation
it appears you have some experience with OO design. personally i'm still learning a lot on that area Smiley

anyway, this forum is more for writing about yourself, e.g. how you got here, what you can do, etc.
Logged





Pages: 1
  Send this topic  |  Print  
 

Jump to: