Forum Topic: As3 War: Back 2 Basics

(437 views • 25 replies)

This topic is 1 page long.

<< < > >>
None

xWELSHxDRAGONx

Reply To Post Reply & Quote

Posted at: 8/31/08 02:17 PM

xWELSHxDRAGONx NEUTRAL LEVEL 07

Sign-Up: 04/13/06

Posts: 518

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!


None

SpamBurger

Reply To Post Reply & Quote

Posted at: 8/31/08 02:22 PM

SpamBurger NEUTRAL LEVEL 15

Sign-Up: 07/12/05

Posts: 4,747

You should have waited to post this after the current AS war is over...

"However, the game received only two orders, one of which Molyneux speculated was from his mother." -Peter Molyneux's first game The Entrepreneur


None

xWELSHxDRAGONx

Reply To Post Reply & Quote

Posted at: 8/31/08 02:28 PM

xWELSHxDRAGONx NEUTRAL LEVEL 07

Sign-Up: 04/13/06

Posts: 518

I havnt posted an end date yet.

But unless im mistaken, the last AS war ends tomorrow.


Blushing

Toast

Reply To Post Reply & Quote

Posted at: 8/31/08 02:40 PM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,924

PLEASE FIND A WAY TO MAKE IT SO THAT THE WARS WON'T BE ERASED IN A FEW MONTHS. don't use imageshack, don't use putfile
maybe u should just post all the codes along with the codes of all the bots when the war is over


None

UnknownFury

Reply To Post Reply & Quote

Posted at: 8/31/08 02:45 PM

UnknownFury EVIL LEVEL 26

Sign-Up: 08/10/05

Posts: 6,027

At 8/31/08 02:40 PM, Toast wrote: PLEASE FIND A WAY TO MAKE IT SO THAT THE WARS WON'T BE ERASED IN A FEW MONTHS. don't use imageshack, don't use putfile
maybe u should just post all the codes along with the codes of all the bots when the war is over

Heh. Hopefully my uploader type thing will be done by the time this is started ;)
If so you can upload them there and I'll archive them all.

Portfolio(Under construction): UnknownFury.com |
Msn: giant_ak_47@msn.com | Contact: me@unknownfury.com
Follow me on twitter!


Resigned

zuperxtreme

Reply To Post Reply & Quote

Posted at: 8/31/08 02:46 PM

zuperxtreme NEUTRAL LEVEL 08

Sign-Up: 01/02/05

Posts: 1,626

I'm getting a compiler error.

1180: Llamada a un método specialFire posiblemente no definido.

Call to a method specialFire possibly undefined.

I couldn't find the function within the files you provided.


None

GustTheASGuy

Reply To Post Reply & Quote

Posted at: 8/31/08 02:47 PM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,418

A Flex version would be good.

Better yet, use the compiler I wrote for this. http://matumeistari.lv/stuff/console.swf

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

UnknownFury

Reply To Post Reply & Quote

Posted at: 8/31/08 02:51 PM

UnknownFury EVIL LEVEL 26

Sign-Up: 08/10/05

Posts: 6,027

At 8/31/08 02:47 PM, GustTheASGuy wrote: Better yet, use the compiler I wrote for this. http://matumeistari.lv/stuff/console.swf

Link doesn't work.

Portfolio(Under construction): UnknownFury.com |
Msn: giant_ak_47@msn.com | Contact: me@unknownfury.com
Follow me on twitter!


None

Toast

Reply To Post Reply & Quote

Posted at: 8/31/08 02:56 PM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,924

I approve of Gust's compilers and converters.


None

GustTheASGuy

Reply To Post Reply & Quote

Posted at: 8/31/08 03:02 PM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,418

If it doesn't, add a www. Gay host.

The compiler generates AS3 bytecode from strings so you ..people can write fast programs without being able to set up Flex.

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

xWELSHxDRAGONx

Reply To Post Reply & Quote

Posted at: 8/31/08 03:06 PM

xWELSHxDRAGONx NEUTRAL LEVEL 07

Sign-Up: 04/13/06

Posts: 518

At 8/31/08 02:46 PM, zuperxtreme wrote: I'm getting a compiler error.

1180: Llamada a un método specialFire posiblemente no definido.

Call to a method specialFire possibly undefined.

I couldn't find the function within the files you provided.

I got 2 TestBot files and i didnt realise.
This is the actual file you need for TestBot
TestBot.as
Sorry for the muck up

Also ill work on getting a more perminant place to uplaod these,.


Happy

zuperxtreme

Reply To Post Reply & Quote

Posted at: 8/31/08 03:18 PM

zuperxtreme NEUTRAL LEVEL 08

Sign-Up: 01/02/05

Posts: 1,626

At 8/31/08 03:06 PM, xWELSHxDRAGONx wrote:
At 8/31/08 02:46 PM, zuperxtreme wrote: I'm getting a compiler error.

1180: Llamada a un método specialFire posiblemente no definido.

Call to a method specialFire possibly undefined.

I couldn't find the function within the files you provided.
I got 2 TestBot files and i didnt realise.
This is the actual file you need for TestBot
TestBot.as
Sorry for the muck up

Also ill work on getting a more perminant place to uplaod these,.

Heh. :] No problem.

I won't participate anyways, I'm not good enough yet ;D

I just wanted to point it out.

Cheers.


None

Claxor

Reply To Post Reply & Quote

Posted at: 8/31/08 03:44 PM

Claxor DARK LEVEL 10

Sign-Up: 10/21/05

Posts: 2,465

I'm in, if I find enough time to make a bot :P

BBS Signature

None

xWELSHxDRAGONx

Reply To Post Reply & Quote

Posted at: 8/31/08 03:48 PM

xWELSHxDRAGONx NEUTRAL LEVEL 07

Sign-Up: 04/13/06

Posts: 518

At 8/31/08 02:47 PM, GustTheASGuy wrote: A Flex version would be good.

Better yet, use the compiler I wrote for this. http://matumeistari.lv/stuff/console.swf

I could makea flex version - but is there really much need?

Also, whats the deal with the compiler - whats it for? Proof of concept or am i missing somthing?
Also how do speeds compare?


None

Skeik-Sprite

Reply To Post Reply & Quote

Posted at: 8/31/08 04:28 PM

Skeik-Sprite LIGHT LEVEL 15

Sign-Up: 06/19/05

Posts: 1,399

Awesome engine, I especially love the time step thing.


None

GustTheASGuy

Reply To Post Reply & Quote

Posted at: 9/1/08 04:52 AM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,418

At 8/31/08 03:48 PM, xWELSHxDRAGONx wrote: I could makea flex version - but is there really much need?

I suppose not. You'd have more chance to interest some better people but not like there's much chance.

Also, whats the deal with the compiler - whats it for? Proof of concept or am i missing somthing?
Also how do speeds compare?

No need for Flash or Flex or haXe. It's 90+% of AS3 speed because the bytecode I generate is bad.

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

hesselbom

Reply To Post Reply & Quote

Posted at: 9/1/08 05:04 AM

hesselbom NEUTRAL LEVEL 01

Sign-Up: 07/19/08

Posts: 309

I'll just chip in to say I might join. This war is way more appealing graphic-wise than any other. ;)

Also, next war should be made with haXe compiled to Flash Player 9!


None

xWELSHxDRAGONx

Reply To Post Reply & Quote

Posted at: 9/1/08 10:33 AM

xWELSHxDRAGONx NEUTRAL LEVEL 07

Sign-Up: 04/13/06

Posts: 518

At 9/1/08 04:52 AM, GustTheASGuy wrote: I suppose not. You'd have more chance to interest some better people but not like there's much chance.

Some peopel like you gust?

Id love to verse you :D

You in?


None

xWELSHxDRAGONx

Reply To Post Reply & Quote

Posted at: 9/1/08 10:15 PM

xWELSHxDRAGONx NEUTRAL LEVEL 07

Sign-Up: 04/13/06

Posts: 518

Okay, can those of you who are interested in joining this war let me know so i have an idea of numbers.

Also Id like to announce:

All Submissions must be in by:

Midnight (00:00) (GMT) September 12th.


None

Claxor

Reply To Post Reply & Quote

Posted at: 9/2/08 04:03 PM

Claxor DARK LEVEL 10

Sign-Up: 10/21/05

Posts: 2,465

There's a risk I won't have time, but I'll sure try to make one :)

BBS Signature

None

xWELSHxDRAGONx

Reply To Post Reply & Quote

Posted at: 9/3/08 12:46 PM

xWELSHxDRAGONx NEUTRAL LEVEL 07

Sign-Up: 04/13/06

Posts: 518

Now that the last AS war is compeltely over, i thought id bump this psot back to front page.

Come on all you AS Wars competitots, dont you know how to use AS3?


None

Cecemel

Reply To Post Reply & Quote

Posted at: 9/3/08 12:56 PM

Cecemel DARK LEVEL 16

Sign-Up: 08/19/05

Posts: 1,078

At 9/3/08 12:46 PM, xWELSHxDRAGONx wrote: Come on all you AS Wars competitots, dont you know how to use AS3?

I don't, but I'll try :/
Not that i have that much free time atm, but I'll try...

and I'll fail

<3


None

xWELSHxDRAGONx

Reply To Post Reply & Quote

Posted at: 9/3/08 05:24 PM

xWELSHxDRAGONx NEUTRAL LEVEL 07

Sign-Up: 04/13/06

Posts: 518

At 9/3/08 12:56 PM, Cecemel wrote: I don't, but I'll try :/
Not that i have that much free time atm, but I'll try...

This could be good practice for you. You have a coding mind, so now its jus getting your head round hte syntax - i promise it looks worse than it is.

I would say you can use the testbot that i wrote to practice on, bth, im havin trouble myself making somthing superior, those testbots have more AI than i first realised ;)


Shouting

SpamBurger

Reply To Post Reply & Quote

Posted at: 9/20/08 02:20 PM

SpamBurger NEUTRAL LEVEL 15

Sign-Up: 07/12/05

Posts: 4,747

Hm, it looks like no one participated in this. And only a few participated in Sumolicious. Does this mean the end of AS Wars??

"However, the game received only two orders, one of which Molyneux speculated was from his mother." -Peter Molyneux's first game The Entrepreneur


None

Cecemel

Reply To Post Reply & Quote

Posted at: 9/20/08 03:41 PM

Cecemel DARK LEVEL 16

Sign-Up: 08/19/05

Posts: 1,078

At 9/20/08 02:20 PM, SpamBurger wrote: Hm, it looks like no one participated in this. And only a few participated in Sumolicious. Does this mean the end of AS Wars??

Ofcourse not, but there used to be atleast a month between each as wars, there were just too many at the same time :3

<3


None

Skeik-Sprite

Reply To Post Reply & Quote

Posted at: 9/20/08 08:51 PM

Skeik-Sprite LIGHT LEVEL 15

Sign-Up: 06/19/05

Posts: 1,399

At 9/20/08 02:20 PM, SpamBurger wrote: Hm, it looks like no one participated in this. And only a few participated in Sumolicious. Does this mean the end of AS Wars??

These wars have been really close together. When the wars only happened once in a blue moon people would have problems getting them done right. I guess we could wait like a month, or maybe get an admin to include AS:Wars in a news post.


All times are Eastern Standard Time (GMT -5) | Current Time: 05:38 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!