PDA

View Full Version : Actionscript battle



pom
March 27th, 2003, 10:42 AM
Anyone wants to have a scripting battle with me? All code, just you and the drawing api.

I suggest we limit the number of lines in this, and the best way to do that seems to be to limit the file size. 1 ko should be enough.

Anyone interested?

pom :phil:

morse
March 27th, 2003, 09:43 PM
Whoa man, battle against you? I would be crushed!

senocular
March 27th, 2003, 10:43 PM
Im in :)

lostinbeta
March 27th, 2003, 11:07 PM
I am NOT in, I don't need my "ego" crushed at such an early age, this is going to be an AMAZING battle is Ilyas and Sen are in it.

senocular
March 28th, 2003, 12:35 AM
:!: lost!

what if I ... only use 3 lines of code?

lostinbeta
March 28th, 2003, 12:39 AM
Well that would just hurt my "ego" even more because you would beat me into submission with 3 lines of code :P

senocular
March 28th, 2003, 12:57 AM
Ill just not enter and instead help you with your submittion and understanding it all better (then secretly take all the credit when you win :evil: ) ... who said that?

lostinbeta
March 28th, 2003, 01:19 AM
You should enter, but still help me understand it all better!

morse
March 28th, 2003, 05:16 AM
How about its open source after the battle is done ?

senocular
March 28th, 2003, 09:46 AM
Originally posted by morse
How about its open source after the battle is done ?

All AS battles should be ;)

Kitiara
March 28th, 2003, 09:48 AM
I'm not quite ready to have my AS skills beaten into submission quite yet, so I'll pass too. But I might be able to think up an interesting topic for you to attempt... :)

senocular
March 28th, 2003, 09:55 AM
ok, how about AS tennis? Did this a few times back in WH. Start off with a single FLA, one person adds 10 or so lines of code, passes it on, next person adds 10 or so lines... passes it on.. etc etc etc. No winer or losers, just an evolved, shared project which can either be amazing or quite odd, but none the less, interesting, fun, engaging, and great to learn from as you get to see the source of each person's submittion - not only what was done to get the achieved effect, but also organization and coding styles.

:q:

pom
March 28th, 2003, 11:33 AM
That sounds fun :)

But I'd really like to battle :bad: And people don't be shy or too modest (lost, Kit, Morse, whoever) battles are for fun, and Sen is going to crush me too after all...

lostinbeta
March 28th, 2003, 12:03 PM
im THINKING about it, but I still don't know. I have NO ideas of what to make, and I such at optimizing and creating efficient coding, and creating things out of just AS and with a limited amount of lines kind of scares me because I don't know if I can do that either.

Hmmmm :( I am unsure what to do here.

pom
March 28th, 2003, 12:07 PM
Come on... :evil:

Kit, can you give us a subject? And please, no plants, or "round things" :hangover:

Kitiara
March 28th, 2003, 12:09 PM
Rats. :)

Just scripting then? No symbols?

<b>*Thinks*</b>

senocular
March 28th, 2003, 12:11 PM
just so you know. Im not creative. I just know how to make things work :) It wouldnt be hard to beat me aesthetically.

Kitiara
March 28th, 2003, 12:14 PM
Ah, but an AS battle is about the beauty of the code. :)

How about... Um... A vortex? Like a funnel... Script that with Flash.

lostinbeta
March 28th, 2003, 12:25 PM
Kit: http://www.kirupa.com/lab/tornado.htm

pom
March 28th, 2003, 05:41 PM
I like the vortex idea. A bit cliché :cyborg: but it's definitely more doable than a mouse (!!!).

kode
March 28th, 2003, 06:39 PM
interesting... give me a good subject and i'll think about it :P =)

Originally posted by lostinbeta
im THINKING about it, but I still don't know. I have NO ideas of what to make, and I such at optimizing and creating efficient coding, and creating things out of just AS and with a limited amount of lines kind of scares me because I don't know if I can do that either.

Hmmmm :( I am unsure what to do here.
trust your instincts!! :P said like Peppy Hare in Star Fox

senocular
March 28th, 2003, 06:59 PM
here are some thoughts:

- blooming flower
- effervescent amorphism ( probably round :!: )
- organ function simulations
- zoetic cubism
- landscape terraforming
- hyperspace
- ... TROGDOR!!!!

lostinbeta
March 28th, 2003, 07:06 PM
effervescent amorphism - what?

zoetic cubism - what?

TROGDOR!!!! - WHAT!?!?

kode
March 28th, 2003, 07:07 PM
ditto :P :P

senocular
March 28th, 2003, 07:24 PM
effervescent amorphism - light, floating-like amorphic shapes - shapes which have no definite form and are just like... like wobbly bubbles floating in a spring breeze :nerd:

zoetic cubism - cubism mimicing or in some way pertaining to 'life' - cubism being a rigid 20th century art form (ignited by Pablo Picasso) using alot of hard edged geometry and abstraction.
Some cubist paintings include
The Ladies of Avignon (http://www.cwru.edu/artsci/engl/VSALM/mod/jung/resources/picasso.JPG)
and
Portrait of Daniel-Henry Kahnweiler (http://www.english.upenn.edu/~afilreis/Images/picasso-cubist-portrait.jpg)
One obviously more abstract than the other

and then there's
TROGDOR!!! (http://www.homestarrunner.com/sbemail58.html)
(and TROGDOR!!! the game! (http://www.homestarrunner.com/trogdor.html))

pom
March 28th, 2003, 07:25 PM
I like the landscape and the hyperspace because they're the only ones I understand... And blooming flower I understand too, but please no plants :crazy:

kode
March 28th, 2003, 07:36 PM
hmmm... i'd take one of these =)

- effervescent amorphism
- landscape terraforming
- hyperspace

... or
- TROGDOR!!! :P jk

lostinbeta
March 28th, 2003, 08:45 PM
Ack.. such advanced topics..... lack of confidence in skills... dunno if I should enter..... undecided....... headache.... must........... think........

Alex
March 28th, 2003, 11:42 PM
oh come on lost, enter, you have nothing to loose if you do enter. lol your really good at flash and i think that you should enter.

No pain no gain.... lol

senocular
March 28th, 2003, 11:51 PM
yeah, see, Alex IS in... you should be too ;)

Alex
March 29th, 2003, 12:02 AM
Originally posted by senocular
yeah, see, Alex IS in... you should be too ;)


i am???:sigh: :hangover:

pom
March 29th, 2003, 02:11 PM
So what will it be? :) Could be a nice thing that a non-scripter mod gives us a theme.

lostinbeta
March 29th, 2003, 02:21 PM
Yeah, we should have a third-party non-scripter mod help decided the theme.

I am going to TRY and do this battle, hopefully I can do SOMETHING. But I think I got up enough guts right now to say that I am in.

Ok, so participants thusfar are...

Ilyas
Sen
<B>Alex</B>
Me
You forgot KAX, lost... :) //pom

:P

kode
March 29th, 2003, 02:47 PM
Originally edited by ilyaslamasse
You forgot KAX, lost... :) //pom
:( :-\

lostinbeta
March 29th, 2003, 02:49 PM
Oh, I didn't know you were in for sure, you said you would think about it didn't you?

kode
March 29th, 2003, 02:52 PM
well, yeah... but when i say i'll think about it, it really means that i'm in :sigh: :P ;)

lostinbeta
March 29th, 2003, 02:53 PM
Oh, well I am not a mind reader, and I didn't know that :P :trout:

Alrighty. "W00t!"

kode
March 29th, 2003, 03:00 PM
Originally posted by lostinbeta
Oh, well I am not a mind reader...
i am... and i will steal your project for the battle :bad: :P

ok then. a non scripter mod give us the theme? =)

lostinbeta
March 29th, 2003, 03:01 PM
Steal my project? Id be lucky to even come up with one that works :P

kode
March 29th, 2003, 03:03 PM
:P

come on... don't be so modest. you know you're good ;) =)

Alex
March 29th, 2003, 04:06 PM
if i compete, i would get my arse handed to me.

and i do not have anything to enter....

Freddythunder
March 30th, 2003, 03:12 AM
I don't really belong in here. I'm at work and was jumping around the forums. I had to chime in. I could be your third party. I say...
Trogdor...
;)

lostinbeta
March 30th, 2003, 03:38 AM
Only mods can offically finalize rules and themes.

senocular
March 30th, 2003, 09:38 AM
TROGDOR!!!!

:screams:

TROGDOR!!!

bunrinating all the peasants.... TROGDOR!!!

fluid_0ne
March 30th, 2003, 10:30 AM
can i also take a part???
i just want to try... cuz i know i'll lose ;)

pom
March 31st, 2003, 04:25 PM
Has every mod out there left the Battle area?? :(

lostinbeta
March 31st, 2003, 04:25 PM
No clue.... :-\

Law
March 31st, 2003, 04:39 PM
if the subject is something i might be able to do i'll enter

teed
March 31st, 2003, 04:56 PM
i rekcon you should have to craete a graphic program like paint :p

pom
March 31st, 2003, 04:58 PM
Right. Or maybe develop a whole rendering program like 3DSMax. Are you ready, people? Let's get going!

teed
March 31st, 2003, 04:59 PM
ok start NOW!!!

lostinbeta
March 31st, 2003, 05:03 PM
Nothing is finalized yet Ilyas :P

We need a third party mod. And a definite theme. And a document size, etc, etc.

pom
March 31st, 2003, 05:06 PM
I was joking :beam:

lostinbeta
March 31st, 2003, 05:11 PM
Oh.. oops :blush:

kode
March 31st, 2003, 05:49 PM
ok... i say pom is out of the battle so he can be our third party mod :P ;)

lostinbeta
March 31st, 2003, 05:51 PM
LOL, good way to eliminate the competition, but since this is going to be open source, I say Ilyas stays in and I be our 3rd party mod :P

That way people get the good stuff :P

pom
March 31st, 2003, 05:54 PM
Originally posted by kax
ok... i say pom is out of the battle so he can be our third party mod :P ;) GRRRRRRRRRR!!!!!!!!!

kode
March 31st, 2003, 05:55 PM
Originally posted by lostinbeta
That way people get the good stuff :P
hmmm... that's a good point ;)

and

Originally posted by lostinbeta
I say Ilyas stays in and I be our 3rd party mod :P
that's not an option here... you'll be in the battle whether you like it or not!! :bad: :P

kode
March 31st, 2003, 05:58 PM
Originally posted by ilyaslamasse
GRRRRRRRRRR!!!!!!!!!
ok. you can participate... but will you let me win? :beam: :P

Alex
March 31st, 2003, 07:25 PM
can i post my 3d cube thing??? thats all i have that might have a fighting chance. im really pressed for time right now, between my web site, and school work.

nobody
March 31st, 2003, 07:37 PM
*cough*TROGDOR*cough*
sorry, couldn't resist

You guys have a fun little competetion, i can't wait to see who gets burninated. You guys should do that adding to code thingy too.. i saw that on the bit forums.. that was neeto

lostinbeta
March 31st, 2003, 08:44 PM
Originally posted by Alex
can i post my 3d cube thing??? thats all i have that might have a fighting chance. im really pressed for time right now, between my web site, and school work.

Nope Alex, that was tweens... this is an <B>Actionscript</B> battle ;) ;)

Alex
March 31st, 2003, 09:10 PM
ah man, count me out then, im horriable at action scripting, but im reading tutorial to try an get better, so can you please take me off of the list, sorry.

pom
April 1st, 2003, 04:31 AM
Originally posted by kax
ok. you can participate... but will you let me win? :beam: :P Sure :sure:


:evil:

fluid_0ne
April 1st, 2003, 09:14 AM
so what's the theme???

Law
April 1st, 2003, 10:54 AM
something easy i hope

Jasninder
April 2nd, 2003, 06:24 AM
I m seriously lost, I dont know where to view this battle :(

lostinbeta
April 2nd, 2003, 01:02 PM
You don't view it, once the battle is finalized, all participants have a certain time period to create something that fits the theme of the battle.

When the deadline is up, we submit our works, then a poll is created for people to vote.

You don't win anything if you win a battle, battles are just friendly competition to compare skills and learn a thing or two from others as well.

teed
April 2nd, 2003, 01:13 PM
lol i dont see why you cant make a paint thing. mine is really wierd at the mo but i should be able to fix it up.

lostinbeta
April 2nd, 2003, 01:24 PM
Because it is an actionscript battle.

Do you know how hard it would be to make an entire paint application through just AS with no symbols in the library or on the stage???

Definitely too much work for a battle.

teed
April 2nd, 2003, 01:25 PM
hmm.ah ok i thought u were allowed to use symbols

very sorry

lostinbeta
April 2nd, 2003, 01:27 PM
Oh... nope... no symbols, just the drawing API in Flash MX and some functions and prototypes, etc, etc.

teed
April 2nd, 2003, 01:28 PM
oh god that would be very hard, well depending on what you have to make i will join or not

kode
April 2nd, 2003, 01:42 PM
we need a mod! we need a theme! we need someone who can beat pom and sen!! :P

Alex
April 2nd, 2003, 04:51 PM
where is eg? mabey he could beat them. i sure cant. lol

morse
April 3rd, 2003, 12:44 AM
I think we should be alloud to have simple shapes (like circles or squares) in the library (or on stage, but off to the side). Then I would enter. Oh, and if I were to get 0 votes, then dont bother saying I entered in the battle winner's thread.

pom
April 3rd, 2003, 08:33 AM
Originally posted by kax
we need a mod! we need a theme! we need someone who can beat pom and sen!! :P We need Bit :) He would most definitely kick our butts ;(

And I'll spam the mods for a theme, don't worry :evil:

kode
April 3rd, 2003, 10:09 AM
Originally posted by ilyaslamasse
We need Bit :) He would most definitely kick our butts ;(
yup... i agree :P he's amazing =)

Originally posted by ilyaslamasse
And I'll spam the mods for a theme, don't worry :evil:
:P good idea!! ;)

ahmed
April 3rd, 2003, 11:26 AM
how about a hand writing recognition app kind of thing.. that would be really cool.. but very hard i guess :-\

eyezberg
April 3rd, 2003, 03:12 PM
exists already, can post the fla if you want ;)

Guig0
April 3rd, 2003, 03:12 PM
by all means do it eyez! =)

kode
April 3rd, 2003, 03:13 PM
ditto ;) =)

eyezberg
April 3rd, 2003, 03:15 PM
As it's very popular and always asked for, how about
"who CODES the nicest clock, analog or digital" ?
-date
-dynamic textfield creation
-drawing api
...

ahmed
April 3rd, 2003, 05:08 PM
eyezberg-
wow i never realized it'd be possible to make one, though it would be extremely hard. post the fla if you dont mind :)

lostinbeta
April 3rd, 2003, 05:09 PM
Its totally possible :)

But of course that would involve drawing circles :hangover:

fluid_0ne
April 3rd, 2003, 07:22 PM
lost - tip:
math: r^2 = (x-a)^2+(y-b)^2;
smth^2 = smth * smth

clear???


btw
what's the code line limit or size limit???

lostinbeta
April 3rd, 2003, 07:25 PM
I already have code for making a circle in Flash (thanks Sen :P) from a while back.

But if all of us just to standard circles for shapes of the watch, it would be kinda hard to tell whose entry is better because they will all be the same.


Not to mention the circular position of the numbers on the watch...

fluid_0ne
April 3rd, 2003, 07:27 PM
and who told you that clock must be oval???

lostinbeta
April 3rd, 2003, 07:29 PM
Im saying... to create different looking entries, they must all look different, meaning we can't just use basic shapes, we will need to be creative in the design of it, and if you have every used the drawing API, you may know that it is not as easy to use as the the actual drawing tools in Flash.

fluid_0ne
April 3rd, 2003, 07:31 PM
i know, but it's fun!

sample:


_x = Stage.width/2;
_y = Stage.height/2;
function flower(trg, i, k) {
var mc = trg.createEmptyMovieClip("kwiat"+i, -i);
mc.beginFill(0x330066) and mc.curveTo(k*3, 0, k*3, k*3) and mc.curveTo(0, k*3, 0, 0) and mc.endFill();
mc.beginFill(0xCC9900) and mc.curveTo(k*2.8, 0, k*2.8, k*2.8) and mc.curveTo(0, k*2.8, 0, 0) and mc.endFill();
mc._rotation = _root.j*60;
}
for (j=2; j<70; j++) flower(_root, j, j);
_root.onEnterFrame = function() {
_rotation -= 1;
}

just a sample (i'm learning 4 3 days now...)

lostinbeta
April 3rd, 2003, 07:33 PM
nice ;)

fluid_0ne
April 3rd, 2003, 07:34 PM
rot = random(3599);
_x = Stage.width/2;
_y = Stage.height/2;
function flower(trg, i, k) {
var mc = trg.createEmptyMovieClip("kwiat"+i, -i);
mc.beginFill(0x330022) and mc.curveTo(k*3, 0, k*3, k*3) and mc.curveTo(0, k*3, 0, 0) and mc.endFill();
mc.beginFill(0xCC9900) and mc.curveTo(k*2.8, 0, k*2.8, k*2.8) and mc.curveTo(k, -k, 0, 0) and mc.endFill();
mc._rotation = _root.j*_root.rot;
mc.onEnterFrame = function() {
_rotation -= .01;
};
}
for (j=2; j<90; j++) {
flower(_root, j, j);
}
_root.onMouseDown = function() {
rot = random(3599);
for (j=2; j<90; j++) {
flower(_root, j, j);
}
};


click 4 change...

still need some work...

morse
April 3rd, 2003, 11:34 PM
Too bad I have no clue what-so-ever about whats goin on!

eyezberg
April 4th, 2003, 03:04 AM
Erm...looking for the fla guys, I have to many zips from all over the net, and don't remember the name of this one, so i goota open all the likely ones and check..sorry, but won't be too long..
While waiting, check an example for a scripted clock from www.sephiroth.it ..

lostinbeta
April 4th, 2003, 03:05 AM
Hehe, Keith Peters did something like that a long long time ago :) Its cool.

eyezberg
April 4th, 2003, 03:13 AM
Ok, found it..weird name, that's why i couldn't find it..
There you go (works a bit like graphity thing on palms..draw the letter...I think i saw the patterns to draw somewhere..I'll have a look..

ahmed
April 4th, 2003, 03:19 AM
wow.. thanks for the file :) it's so neat.. it's simpler than i though :) (not to say that it isnt complicated)

pom
April 5th, 2003, 01:06 PM
fluid >> Nice. I knew I had seen your name somewhere when you posted at Bit-101 :)

lostinbeta
April 5th, 2003, 06:11 PM
Originally posted by eyezberg
As it's very popular and always asked for, how about
"who CODES the nicest clock, analog or digital" ?
-date
-dynamic textfield creation
-drawing api
...

Ok, well we kinda got off topic here (my fault, sorry)

Is this what we are doing? If so, when is the due date and what is the canvas size we will be working on?

Law
April 6th, 2003, 02:44 PM
does anyone know any good api tutorials

fluid_0ne
April 6th, 2003, 04:11 PM
can i suggest theme???

if yes - then REMIX ;)
rules: i give you my fla and you remake it as good as U can. g00d???

kidoo
April 6th, 2003, 05:53 PM
Originally posted by lostinbeta
Ok, well we kinda got off topic here (my fault, sorry)

Is this what we are doing? If so, when is the due date and what is the canvas size we will be working on?

hi Sen. swy i'm late.. (dude should tell ya ol' friend) :cyborg:

i think your ideas are coolest. Landscape sounds better than a clock!

..also what about mandelbrots ..there's one in google (mandelbrot.swf) ..we could build up from the default brot. size is 150 x 150 -- how's that sound for a base code?

ahmed
April 6th, 2003, 05:57 PM
Originally posted by Law
does anyone know any good api tutorials this one here (http://www.flashdevils.com/tutorials.php?id=142) got me started.. :)

pom
April 6th, 2003, 06:04 PM
Landscape is nice. Landscape is fun. I like landscape. Anyone disagrees with that?

lostinbeta
April 6th, 2003, 06:07 PM
Ilyas: Since no other mod is apparently paying attention, I declare you official mod of this battle, it seems that will be the only way we can get this battle started.

Ok, I have no problems with landscapes. As I said before, I can't say for sure if I will be able to submit an entry, but I will give it a whirl and if I can come up with something I will submit it :)


So Ilyas, whats the canvas size we will be working at? Any specific FPS rate? Whens the due date?

upuaut
April 6th, 2003, 11:34 PM
. you guys are mad. :) in a good way.

I look forward to hearing this.. lines of code.. that's the important part. What is the limitation?

upuaut
April 7th, 2003, 01:49 AM
oh I see.. 1k.. eeek

that's pretty sick POM... considering that
I'd be happy to be a 3rd party judge, if it's still needed.

Law
April 7th, 2003, 11:50 AM
thanks ahmed

senocular
April 7th, 2003, 01:00 PM
Originally posted by kidoo
hi Sen. swy i'm late.. (dude should tell ya ol' friend) :cyborg:

i think your ideas are coolest. Landscape sounds better than a clock!

..also what about mandelbrots ..there's one in google (mandelbrot.swf) ..we could build up from the default brot. size is 150 x 150 -- how's that sound for a base code?

KIDOO!!!!
http://userpages.umbc.edu/~tmccau1/images/smilies/bigsmile.gif

;) This thing really hasnt gotten off the ground yet... But you're right, I probably wouldnt have gotten around to letting you know - not because I wouldnt want you to know, I just wouldnt have thought of it! Its been so long since we did something like this before, ya know ;) Glad you found this!

kidoo
April 8th, 2003, 05:41 PM
is this a volley collaboration, or a bit-101 style competition?

senocular
April 8th, 2003, 06:46 PM
I dont think they dig the volley here... they want competition :-\

kidoo
April 8th, 2003, 10:44 PM
I:-) oh - does that mean we have to work independantly and redundantly on the same project??

i'm alread flat out re-inventing the wheel... ha-ha

well, is it a hard and fast rule, or is it all in the wording?

i guess you mean each volley takes 1 post, and look, we're
already on page 8 and hardly started - lol

what happens if we post our zip and edit our post to say "yes; updated on DD-MM-YY."

:A+:

Guig0
April 9th, 2003, 06:55 AM
Originally posted by senocular
I dont think they dig the volley here... they want competition :-\
hey sen, you never gave us that possibility ;)


i think volley is great, like kidoo said we don´t have to re-invent the weel... let´s give it a try, shall we?



go go go kidoo!

pom
April 9th, 2003, 07:56 AM
It's not about reinventing the wheel, it's about implementing your own wheel :)

Guig0 >> I think Sen mentionned this at the beginning but it got submerged by chit-chat.

kidoo >> Bit's rules where fine but they showed their limits pretty fast. The file size seems to be the only thing you can't tamper with, so I say we agree on a file size (1ko is comfortable). Everyone agrees?

Everybody >> I like that volley idea :) How about opening another thread for this?

pom :phil:

kidoo
April 9th, 2003, 09:12 AM
kidoo >> Bit's rules where fine but they showed their limits pretty fast.

i've tried to move Bit's rules half way towards Sen's rules, whilst keeping your own "code only" rule - which is my personal favorite too. That also keeps the filesize small.

Bit's was a simple 25 lines MAX per program - code only competition - everyone coding seperately - anything goes!

But in Sen's version we could append 5 or so lines of code, and 1 element of new graphics per volley - but they had to be based on the shapes that Sen had started with. That was the funny part :crazy:

senocular
April 9th, 2003, 09:21 AM
we had a couple of different ones... some were code only, others were using the simple shapes... one we did which just went crazy (Ill have to try to find a version) I think might have been size based... where you can only add so much Kb per go? There were a bunch of images thrown in and a teletubby with some kind of machine gun on a scooter shooting the sun or something lol it was a mess. It was fun though... lemme see if I cant find that one

http://userpages.umbc.edu/~tmccau1/flash/werehere2/tennis01.html

lol

senocular
April 9th, 2003, 11:25 AM
well I suggest if we do this, it should be opened in a new thread as not to mess with whats planned here (non-volley comp.) Then, the thread starter, whether it be you or me (or whoever) can update the first post with each addition in a single [code] block making it easier to snag to throw in a FLA.... each sequential addition of course still being posted in a new post but the combination in the first post will make it easier to copy all at once. An updated attachment could also be added for the duration of the play though the code would remain indefinitely even if the attachment is no long available.

kidoo
April 9th, 2003, 12:07 PM
kewl, that'll work really well.

i'll set up a new thread, and post a few times to leave enough room for the entire [code] of about 50kb for 5 or more participants.

btw, what's that 1ko?

pom
April 9th, 2003, 01:07 PM
Woohoo!! :) And yes, sorry, 1 ko is the French for 1 kb :beam:

Sen >> Nice *thing* you've got there :P