I’m spending some of my time (while not playing games) experimenting with different design strategies.
I’ve come up with this design:
http://members.optusnet.com.au/ksaho/designs/Mechanics.java
I realise that I should synchronise the 2 arraylists as well as update the sprite’s coords in the GameInterface, but for now I’m just trying to get a good general design.
What I usually did with my previous design was create an object, hold it’s own rendering information as well as data.
That of course didn’t look all that flash, however I’m hoping you guys would criticise my design.
I’ve spent 2 years messing around with different designs. I could never come up with a perfect design. I’ve come to believe the idea of a perfect design is fallacy and I really can’t find a design that works everywhere.
Regardless of whether I’m creating a game/business/internet based apps.
I just cannot do it.
I try my best to generalise my designs to work everywhere. Unfortunately it just can’t happen, especially when you move to web apps.
Anyone know of a near perfect design whether it be in OOP, AspectJ, procedural, etc…?