Thats right, another action script war. However this time its action script 3.
I feel its time to go right back to basics. No gimmicks, just the good old fasioned 1v1v1v1, and a sexy new engine.
First ill hold 4 way fights, then ill include 8 way fights, and for fun - and because as3 should be strong enough too handel it, we can finish off with an all onto all.
This engine is easy to add onto - so if this goes successfully, i can and will make more wars - and then i can start introducing more and more gimmicks.
For those of you who cant do AS3, but consider themselfs quite effiecnt at AS2, i think this would making a very good stepping stone to get you into AS3. Youd be surprised how much u learn about AS3 by the time your finished.
Abilities
The robots have 4 abilities aviable to them:
move(speed:Number, rotation:Number)
Its worth noteing now, the robot will move in the direction hes facing. This method moves teh robot, and changes the angle he is facing by [rotation] ammount.
fire(speed:Number, rotation:Number)
Fires bullets from your robot, at speed of [speed] , and in direction of [rotation] (degrees). Bullets do more damage, and are larger, the slower they are traveling.
lazer()
Lazer creates a big downtime for your robot, however it causes lots of damage to anyone it hits. The lazer is fired in whatever direction the robot is facing.
shield(delay:int = 0)
Shields your robot, abosrbign and healing any bullet damage caused to it whilst under the effect. The downtime it causes is 3 times greater than the duration of the shield.
Rules
Ive put effort into making the rules easy to follow: If the code works you can use it.
I have attempted to remove any methods and properties away from robot control, that i considered could cause an unfair advantage. Im not perfect though, and i may have missed somthing. If you find a way around the system (and there are some) please dont cheat - i will be checking your code. Also, if you discover you can do somthing which seems unfair, again dont do it.
In addition, you can use the Math.random() function as i have replaced it with another random function, that will run of the same seed every time (the numbers returned will be random, however they will be the same numbers each time the war is restarted).
Example
I have made a reasonably skilled bot for you to test your robots against, and learn from.
(I have also included an exmaple file for you to understand how to set up your class).
Rather than keep explaining, you will find with the downlaoded files a ReadMe, and also theres some documentation.
Here are 8 of the TestRobots fighting:
8 Test Robots Fight
Files
Click Here To Download
I hope ive coverd everything.
If not, contact me on xwelshxdragonx@hotmail.com, on MSN (Windows Live Messenger)
Or post in this thread.
There is some documentation in the download! Read It!
Also, there is a project file (AS3War.flp) i suggest you use it to keep things organised and let you know where you are.
Good Luck, and have fun!