A small city building simulation. Construct as big of a city as you possibly can. Keep it powered with utilities and safe with emergency services. The higher a section goes, the bigger it gets and the more it helps to fuel the entire city system. The more successful your city becomes, the more money you get to build it even larger.

Plan your city. Make sure that industrial pollution won't hinder the growth of residential areas. Make sure there is adequet transportation with streets. Use parks around the city and the waterline to make the city more beautiful for residential and commercial districts.

My 2nd contest entry (and game in Java). An inspired re-make of an old classic. More challenging trying to get the simulation working. If there's one thing I wish I could squeeze in, it would be a system for communicating how well different areas of the city are doing (crime, pollution, utility, work, products, retail, etc). May take a 2nd look at it to see if there's some more byte crunching I can do. But there's only so much you can do in 4K, as you're well aware.

-use pngcrush or similar on your graphic file-rename the graphic file to "m" instead of "m.png"-convert all the static methods to non-static methods-try to reduce the number of methods used (each method needs an entry for its signature in the resulting class file)-I am not sure, but does your webstart version of the JAR selfexecuting? if so it is not necessary so remove the meta-inf directory to save space. (you will need to put it back in for your downloadable JAR version (which can be over 4k as long as the webstart version is under 4k)-reduce the number of static and class variables as like with the methods, these variables' signatures are recorded in the class file. Instread try to make 'method scope' variables where you can.

Ideally you will only have two 'methods' one main entry method which will call the constructor where all your code is.

The main trick to fit more into 4k is to NOT think OO and do nastry procedual code

The final point is to run your .class through an optimiser (see 4KJO for a tool which attempts to find the best combination)

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org