Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 My first animation... I think..
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Paul




PostPosted: Mon Jan 19, 2004 2:36 pm   Post subject: My first animation... I think..

Here it is, my first animation:

code:

%shooter guy by: Paul Bian
var colo : int
drawline (0, 68, maxx, 68, black)
for a : 1 .. 500 by 10
    randint (colo, 32, 150)
    drawoval (100 + a, 270, 35, 35, black) %head
    drawarc (80 + a, 275, 7, 7, 45, 316, black) %ear
    drawarc (80 + a, 275, 3, 3, 45, 316, black) %ear
    drawfilloval (58 + a, 275, 5, 5, white)
    drawline (100 + a, 235, 100 + a, 140, black) %body
    drawline (100 + a, 140, 65 + a, 70, black) %left leg
    drawline (100 + a, 140, 135 + a, 70, black) %right leg
    drawline (100 + a, 195, 153 + a, 205, black) %arm
    drawline (65 + a, 70, 80 + a, 70, black) %left foot
    drawline (135 + a, 70, 150 + a, 70, black) %right foot
    drawfilloval (120 + a, 280, 7, 7, black) %eye
    drawarc (120 + a, 285, 7, 7, 35, 145, black) %eyebrow
    drawfilloval (105 + a, 290, 5, 5, white)
    drawarc (120 + a, 270, 20, 20, 200, 280, black) %mouth
    drawfilloval (100 + a, 250, 5, 5, white)
    drawfilloval (100 + a, 340, 75, 40, colo) %hair
    drawfilloval (73 + a, 297, 10, 10, colo) %hair
    drawfilloval (127 + a, 297, 10, 10, colo) %hair
    drawfillbox (153 + a, 220, 160 + a, 185, black) %gun
    drawfillbox (153 + a, 220, 210 + a, 213, black) %gun
    drawfillbox (153 + a, 220, 158 + a, 225, black) %gun
    drawfillbox (190 + a, 220, 210 + a, 225, black)%gun
    drawarc (160 + a, 220, 20, 20, 270, 0, black) %gun
    drawarc (170 + a, 213, 7, 7, 180, 270, black) %gun

    %bullet movement
    for b : 1 .. 350 by 5
        drawfillbox (210 + b + a, 220, 230 + b + a, 213, red)
        drawfilloval (230 + b + a, 217, 3, 3, 4)
        delay (5)
        drawfilloval (230 + b + a, 217, 3, 3, white)
        drawfillbox (210 + b + a, 220, 230 + b + a, 213, white)
    end for

    %draws over
    drawoval (100 + a, 270, 35, 35, white) %head
    drawarc (80 + a, 275, 7, 7, 45, 316, white) %ear
    drawarc (80 + a, 275, 3, 3, 45, 316, white) %ear
    drawline (100 + a, 235, 100 + a, 140, white) %body
    drawline (100 + a, 140, 65 + a, 70, white) %left leg
    drawline (100 + a, 140, 135 + a, 70, white) %right leg
    drawline (100 + a, 195, 153 + a, 205, white) %arm
    drawline (65 + a, 70, 80 + a, 70, white) %left foot
    drawline (135 + a, 70, 150 + a, 70, white) %right foot
    drawfilloval (120 + a, 280, 7, 7, white) %eye
    drawarc (120 + a, 285, 7, 7, 35, 145, white)  %eyebrow
    drawarc (120 + a, 270, 20, 20, 200, 280, white) %mouth
    drawfilloval (100 + a, 340, 75, 40, white) %hair
    drawfilloval (73 + a, 297, 10, 10, white) %hair
    drawfilloval (127 + a, 297, 10, 10, white) %hair
    drawfillbox (153 + a, 220, 160 + a, 185, white) %gun
    drawfillbox (153 + a, 220, 210 + a, 213, white) %gun
    drawarc (160 + a, 220, 20, 20, 270, 0, white) %gun
    drawarc (170 + a, 213, 7, 7, 180, 270, white) %gun
    drawfillbox (153 + a, 220, 158 + a, 225, white) %gun
    drawfillbox (190 + a, 220, 210 + a, 225, white)%gun
    randint (colo, 32, 150)
    drawoval (100 + a, 270, 35, 35, black) %head
    drawarc (80 + a, 275, 7, 7, 45, 316, black) %ear
    drawarc (80 + a, 275, 3, 3, 45, 316, black) %ear
    drawline (100 + a, 235, 100 + a, 140, black) %body
    drawline (100 + a, 140, 100 + a, 70, black) %left leg
    drawline (100 + a, 195, 153 + a, 205, black) %arm
    drawline (100 + a, 70, 140 + a, 70, black) %right foot
    drawfilloval (120 + a, 280, 7, 7, black) %eye
    drawarc (120 + a, 285, 7, 7, 35, 145, black)  %eyebrow
    drawarc (120 + a, 270, 20, 20, 200, 280, black) %mouth
    drawfilloval (100 + a, 340, 75, 40, colo) %hair
    drawfilloval (73 + a, 297, 10, 10, colo) %hair
    drawfilloval (127 + a, 297, 10, 10, colo) %hair
    drawfillbox (153 + a, 220, 160 + a, 185, black) %gun
    drawfillbox (153 + a, 220, 210 + a, 213, black) %gun
    drawfillbox (153 + a, 220, 158 + a, 225, black) %gun
    drawfillbox (190 + a, 220, 210 + a, 225, black)%gun
    drawarc (160 + a, 220, 20, 20, 270, 0, black) %gun
    drawarc (170 + a, 213, 7, 7, 180, 270, black) %gun

    %bullet movement
    for c : 1 .. 350 by 5
        drawfillbox (210 + c + a, 220, 230 + c + a, 213, red)
        drawfilloval (230 + c + a, 217, 3, 3, 4)
        delay (5)
        drawfilloval (230 + c + a, 217, 3, 3, white)
        drawfillbox (210 + c + a, 220, 230 + c + a, 213, white)
    end for

    drawoval (100 + a, 270, 35, 35, white) %head
    drawarc (80 + a, 275, 7, 7, 45, 316, white) %ear
    drawarc (80 + a, 275, 3, 3, 45, 316, white) %ear
    drawline (100 + a, 235, 100 + a, 140, white) %body
    drawline (100 + a, 140, 100 + a, 70, white) %left leg
    drawline (100 + a, 195, 153 + a, 205, white) %arm
    drawline (100 + a, 70, 140 + a, 70, white) %right foot
    drawfilloval (120 + a, 280, 7, 7, white) %eye
    drawarc (120 + a, 285, 7, 7, 35, 145, white)  %eyebrow
    drawarc (120 + a, 270, 20, 20, 200, 280, white) %mouth
    drawfilloval (100 + a, 340, 75, 40, white) %hair
    drawfilloval (73 + a, 297, 10, 10, white) %hair
    drawfilloval (127 + a, 297, 10, 10, white) %hair
    drawfillbox (153 + a, 220, 160 + a, 185, white) %gun
    drawfillbox (153 + a, 220, 210 + a, 213, white) %gun
    drawfillbox (153 + a, 220, 158 + a, 225, white) %gun
    drawfillbox (190 + a, 220, 210 + a, 225, white)%gun
    drawarc (160 + a, 220, 20, 20, 270, 0, white) %gun
    drawarc (170 + a, 213, 7, 7, 180, 270, white) %gun
end for
Sponsor
Sponsor
Sponsor
sponsor
shorthair




PostPosted: Mon Jan 19, 2004 3:02 pm   Post subject: (No subject)

Its ummm ,ahhhhh Confused errrrrr Confused " Special" ... no no no its good for a first animation but soon you will learn that drawing with variables is alot better and that you can write this program much more efficiantly.... But for a first animation its really awsome
sport




PostPosted: Mon Jan 19, 2004 7:23 pm   Post subject: (No subject)

This piece of code is useless at best, but on the second thought my first graphics were not much better and a can give an advice for a future program. You should design some cool character and save it as a picture and then recall it and do the same thing as in this program and ad some user controls, background and some simple ai and you're all set for a game.
ArchAngel16




PostPosted: Mon Jan 19, 2004 7:38 pm   Post subject: (No subject)

Heh my first animation was the Deathstar blowing the bloody hell out of a planet and then it got attacked by X-Wings over 600 lines of code and THAT was my first animation I would upload it but I lost all my files from last year
sport




PostPosted: Mon Jan 19, 2004 8:13 pm   Post subject: (No subject)

It should have been a great animation, too bad you lost it
Andy




PostPosted: Mon Jan 19, 2004 8:19 pm   Post subject: (No subject)

my first animation was pong wtih ai, and four players compatible...
shorthair




PostPosted: Mon Jan 19, 2004 9:45 pm   Post subject: (No subject)

You can only wis Dodge , just like my first program was a new compiler for turing , seriously Embarassed
AsianSensation




PostPosted: Mon Jan 19, 2004 10:28 pm   Post subject: (No subject)

lol, no seriously.

dodge did do a 4 player pong for his first animation, and he got what, 24/20 on that?

I remember that as the first assignment we had, me, dodge, and SilverSprite all went overboard on that one.
the_icycle




PostPosted: Tue Jan 20, 2004 11:07 am   Post subject: Umm...

YO MAN!!!! You couldve done so much better! The hairstyle is wrong but the hair colour sucks too. Post a new one so we could see if its better. aight l8er.
Andy




PostPosted: Tue Jan 20, 2004 12:00 pm   Post subject: (No subject)

HOW DARE YOU DOUBT THE POWER OF THE WHATDOTCOLOR WARRIOR??? Evil or Very Mad Evil or Very Mad Evil or Very Mad Evil or Very Mad Evil or Very Mad
-19 bits for you!!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 10 Posts ]
Jump to:   


Style:  
Search: