Posted on July 28th, 2007 by headwedge
Incomplete initial specification:
Background
The Model-View-Controller (MVC) architecture [link] is almost ubiquitous to the point of being a gui/web programming paradigm. It is such a natural decoupling approach that it is implicit in most non-trivial programs, whatever the language. However, making it more explicit through the Observer (Publish-Subscribe) Pattern frees up the ‘pluggability’ power of decoupling.
Overview
The mvc [...]
Filed under: Java, game framework, pixel, specification | No Comments »
Posted on July 28th, 2007 by headwedge
< ---PixelFramework logo
I would like to extend the GameFramework with a package of classes to enable pixel/cell/automata applications.
The most intuitive data model for a plane of pixels with alpha, red, green & blue values (argb) is a 2D array of int: int[ ][ ].
The first draw back of this data model is [...]
Filed under: Java, code, pixel | No Comments »
Posted on July 26th, 2007 by headwedge
86% GeekMingle2
Filed under: Uncategorized | No Comments »
Posted on July 21st, 2007 by headwedge
CVSDude offer professional CVS Hosting but also a free 10MB service for you to play with as long as you like. Combine this service with the excellent free cut down version of the SmartSVN SubVersion client and say goodbye to the flaky relationship between XCode and your local SubVersion repository.
Filed under: code, hack, mac | No Comments »
Posted on July 20th, 2007 by headwedge
Javadocs has the handy option of being able to put all the arguments you have chosen into a separate file(s).
As the documentation recommends I have 2 files ‘options’ and ‘packages’ used thus:
javadoc @options @packages
This approach minimizes bugs when editing options.
The options file:
-d ./javadocs
-author
-version
-windowtitle “www.headwedge.com”
-header “h2Headwedge GameFramework/h2/brv0.2″
-bottom ‘a href=”{@docRoot}/Academic Free [...]
Filed under: Java, game framework | No Comments »
Posted on July 18th, 2007 by headwedge
Testing the frame rate of the AnimatedStage class was always a System.out.println(…) kind of thing. But I wanted a nice on screen display so it was about time to write a text display widget.
The GameFramework has been shoved into its own package ‘game’ and has also had a few concurrency holes plugged:
AtomicBoolean for dirty, [...]
Filed under: Java, code, game | No Comments »
Posted on July 18th, 2007 by headwedge
Making life easier with the Facade Pattern (Gamma et al 1994) [link] is a common programming pattern.
The facade provides a simple default view of the subsystem that provides a simple interface to the more complex subsystem of game, making it easier to use.
Using GameFramework for an animated game much of the initialisation is recurring:
create an [...]
Filed under: Java, code, game | No Comments »
Posted on July 17th, 2007 by headwedge
Jar Inspector is a fine piece of free software from Christoph Gerdes that:
Jar Inspector is an easy to use yet powerful jar file editor. It allows you to effortlessly view, edit and decompile the contents of jar files.
Integrated in your development tool chain you no longer need to rebuild entire jar files when editing configuration [...]
Filed under: Java, code, solutions | No Comments »
Posted on July 15th, 2007 by headwedge
Javadoc documentation & zipped source code for game framework so far (v0.2) available on the Documentation & Downloads page.
Filed under: Java, code, game framework | No Comments »