• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Cocoa-Java] Aquataxx source code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cocoa-Java] Aquataxx source code


  • Subject: [Cocoa-Java] Aquataxx source code
  • From: Steve Klingsporn <email@hidden>
  • Date: Sun, 3 Nov 2002 18:18:53 -0600

For the purpose of discussion and enlightenment, here is a copy of the latest source code for my Java-Cocoa game, "Aquataxx." It's between the version 1.6 that I released recently, and version 1.6.1, that I will release in a few days (hopefully with the few remaining crashers resolved). I'll go to the Chicago meeting on Tuesday @ Apple, and would love to discuss this some more there, if possible.

http://www.buzzlabs.com/files/Aquataxx1.6+.src.zip

Some notes:

- I chose Java because A) the game model is written in Java so that it's portable. It works nicely on small mobile devices, the simple inter-game message format can be stuffed easily into SMS messages, and it started out as a fun Applet/Application exercise when I was bored. B) Java-Cocoa is a supported development choice from Apple. C) There aren't that many Java-Cocoa apps out there (that I've seen), and the examples code in /Developer isn't very easy to follow sometimes, and D) I wanted to learn Cocoa, and already know Java (and C/C++, but Obj-C is a bit different).

- Sure, I'll use Objective-C in the future, but Java is a nice language as well, and Java gives you a great deal, especially with regards to networking, string manipulation, etc. Sun continues to improve this library base for you, and there are a lot of excellent third-party libraries available. Plus, performance of Cocoa-Java is very good -- and I develop on a Rev. A 500Mhz dual-USB iBook.

- Some aspects of the code have not been cleaned up yet. The AI is being improved right now, and that code isn't the brightest. Some aspects of AtaxxGame could be redesigned to work better, or have been left as-is for historical purposes. One of my goals was to change AtaxxGame as little as possible as a test of its re-use.

- The code is pretty well-documented. Excessively-so in most cases.

Thanks very much for any help. Feel free to learn from or teach me based on this code. That's what it's about.

Someone on the java-dev list asked about articles re: Cocoa-Java. I intend to follow-up with an article in the next week that serves as both a justification for using Java with Cocoa, and a "getting started" type document. I'd be interested in talking to another developer or writer about the possibility of working on a Cocoa-Java book, if there is an interest and a market for it.

Steve
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [Cocoa-Java] Aquataxx source code
      • From: Jonathan Hendry <email@hidden>
  • Prev by Date: Disappearing NSToolbarItem
  • Next by Date: Re: Disappearing NSToolbarItem
  • Previous by thread: Re: Disappearing NSToolbarItem
  • Next by thread: Re: [Cocoa-Java] Aquataxx source code
  • Index(es):
    • Date
    • Thread