Link Details

Link 73202 thumbnail
User 239201 avatar

By amphi
via java4k.com
Published: Mar 28 2008 / 21:27

"Only" 21 games this time, but boy there was some awesome stuff this year. The official scoring is over here: http://java4k.com/overall.html
  • 23
  • 0
  • 5337
  • 2

Comments

Add your comment
User 1 avatar

rick replied ago:

1 votes Vote down Vote up Reply

Looks like a cool competition, and I appreciate the challenge to make something useful in such a tight space. We'd love to have an article about this at Javalobby!

User 239201 avatar

amphi replied ago:

1 votes Vote down Vote up Reply

I wrote the game fuzetsu (2006) which came in 5th (out of 55). The key is to write really ugly code. One class, no inner classes etc. If possible no additional files, because each one adds about 140 bytes of overhead. My game for example consisted of a constructor and processEvents... that's it. The coords and deltas for each bullet were stored in Rectangle2D objects (x=x, y=y, w=dx, h=dy), because a custom class would have been too expensive.

Other than that it's a matter of experimentation and well, you need a battery of obfuscators and compression tools. The ones I used were Jarg, ProGuard, and Joga. For compression bjwflate (DeflOpt nowadays), kzip and zipmix.

Cramming in as much as possible is by far the most time consuming aspect, but it's sort of fun (and sort of frustrating heh).

By the way it's an annual event. The first one was back in 2001 if I remember correctly. The entries became more impressive with each iteration.

Nowadays the forums are over at JGO:
http://www.javagaming.org

User 85500 avatar

andrewm replied ago:

1 votes Vote down Vote up Reply

Some of the games are absolutely amazing. I mean, a clone of zarch (3d archimedes game originally by david braben of elite fame) in under 4k??!! it's quite playable too -- full 3d camera effects and the particle exploding effects. i just didn't realise it was possible to do something like that in that sort of space. I'm not easily amazed but that's incredible.

Andrew

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Java Performance Optimization
Written by: Pierre-Hugues Charbonneau
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java EE7
  5. HTML5 Mobile
  1. Node.js
  2. Debugging JavaScript
  3. OO JS
  4. JSON
  5. Ajax