Pugs: Perl 6 interpreter in Haskell Rails for the poor Struts guys #2
Feb 25

First Video Game Written In Ant

Builds Add comments

Jon Aquino has started a new craze. The last two JavaOne’s have had Vodafone telling us “write video games for mobile phones and you will make millions!!!”.

Maybe this year we will be told to write Ant video games! :)

Fair play to Jon for showing that this is possible. The one, practical, take away point is that you can check out the new macrodef functionality in Ant 1.6, and the Ant Contrib library which gives you the if/then/else/for/.... tags and more.

<macrodef name="check-crash">
<sequential>
<if><islessthan arg1="${left-clearance}" arg2="0"/>
<then><die/></then></if>
<if><islessthan arg1="${right-clearance}" arg2="0"/>
<then><die/></then></if>
</sequential>
</macrodef>

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'cricket'

Loading...