CGS Version 3.0

27.01.2010 • 22:51 • permalinkComments (0)

I've been meaning to continue my compiler series for a few weeks, but performance issues and general doubt about how best to structure the code has resulted in some delays. I suppose I'm also guilty of jumping forward to the fun bits and as a result I've finished a version of the Card Game Simulator using the compiler. As it stands, it's version 3.0 but I'll incrementally add more features and card games as I move forward (Currently, I'm adding the functionality required to support the game Spider).

CGS Menu

Apart from having it's guts totally replaced, the application has also recieved a graphical overhaul. It now features more and better animations and a new card design. The cards look a bit similar at the moment but I'll be making them a more distinguishable in the future. I'm still trying to figure out the best way to represent the face cards without ruining the style. As you can see I'm going for a worn, kind of old school look.

CGS Cards

You can try out the new version here. If you feel like it, you can also compare and contrast with the old version 2. As I mentioned, there are some performance issues with the new version and it actually loads games much slower than the old one. It appears that the strategy I'm using for the compiler is not very efficient and it already begins to show when compiling games of a few hundred lines of code, possibly due the massive amounts of recursion or the heavy use of reflection. When time permits, I'll scour the web for a good profiler and see if it seems fixable.

Comments

Name:

Comment (no HTML):