[Botzilla-discuss] Collectables.
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2005-03-08 05:13:03
|
I've added collectables to the botZilla code in CVS. There are four collectables - all show up as spinning tokens with a letter in the middle: 'E' Energy : Recharges your energy banks to 100% 'H' Health : Restores 30% of your health. 'S' Speedup : Allows your 'bot to move at twice the usual speed. 'T' TimeStop: Causes time to stop for 3 seconds - all of the other 'bots will be frozen in place whilst yours is free to move, shoot, etc. Right now, only Energy and Health tokens are actually functional and lots of other stuff doesn't work yet. Once your 'bot has collected a token, it keeps it until it sets it's action to 'USE_COLLECTABLE'. For the joystick bot, the fourth joystick button 'activates' the collectable. If you collect a second collectable without activating the one you've got, you simply lose the oldest one. There are always two collectables somewhere on the map - when you pick one up, another one appears somewhere at random - at least four blocks from any other robot. This gives you an incentive NOT to hide in the corner because you have only 25% of the normal chance of seeing a collectable. Right now, collectables don't appear on the 'bots map and there is no way to know you have one! :-) ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |