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

Username:   Password: 
 RegisterRegister   
 Happy Smiling Face(fully graphical)
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
sport




PostPosted: Sat Jan 17, 2004 2:07 pm   Post subject: Happy Smiling Face(fully graphical)

code:

setscreen ("graphics")
setscreen ("graphics:788;502")
var x, y, r : int
const colo := yellow
const colo_eye := black
const colo_mouth := brightred
loop
    randint (r, 1, 100)
    randint (x, r, maxx - r)
    randint (y, r, maxy - r)
    const eye := r div 5
    drawfilloval (x, y, r, r, colo)
    drawoval (x, y, r, r, black)
    drawfilloval (x + r div 3, y + r div 3, eye, eye, colo_eye)
    drawfilloval (x - r div 3, y + r div 3, eye, eye, colo_eye)
    drawarc (x, y - r div 4, r div 2, r div 3, 180, 360, colo_mouth)
    for decreasing i : eye .. 1
        drawfilloval (x + r div 3, y + r div 3, eye, i, colo_eye)
        delay (50)
        drawfilloval (x + r div 3, y + r div 3, eye, i, colo)
    end for
    for i : 1 .. eye
        drawfilloval (x + r div 3, y + r div 3, eye, i, colo_eye)
        delay (50)
        drawfilloval (x + r div 3, y + r div 3, eye, i, colo)
    end for
    drawfilloval (x + r div 3, y + r div 3, eye, eye, colo_eye)
end loop
Sponsor
Sponsor
Sponsor
sponsor
shorthair




PostPosted: Sat Jan 17, 2004 2:59 pm   Post subject: (No subject)

Good job ( pssss , its been done Rolling Eyes ) but its well done , good use of variable aswell
DanShadow




PostPosted: Sat Jan 17, 2004 10:14 pm   Post subject: (No subject)

hmmm...I think that program was stolen sport...by you! I have seen that exact program done by someone else...except slightly different, like changed variable names. If you did indeed steal that and post it, let Twisted EvilVengeanceTwisted Evil be brought down upon you...but if you did truthfully make it, good job. Smile

[[PS]] Shorthair, where did you get 1300 bits from???
sport




PostPosted: Sat Jan 17, 2004 11:20 pm   Post subject: Reply

The code was not stolen, but I did help a couple of guys finishes their programs in school so if they posted their programs they might be somewhat alike, but I did right this program from start to the end.
shorthair




PostPosted: Sun Jan 18, 2004 10:32 am   Post subject: (No subject)

Ive been saving my bits dan, i got 1000 from mazer a while back for this exact program , but i spent that on email forwarding ,
Prettyjnk




PostPosted: Thu Apr 29, 2004 3:43 pm   Post subject: (No subject)

nice faces, i like it!
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  [ 6 Posts ]
Jump to:   


Style:  
Search: