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

Username:   Password: 
 RegisterRegister   
 a start to a some kind of pacman
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kit-kat-kid




PostPosted: Wed May 05, 2004 2:01 pm   Post subject: a start to a some kind of pacman

code:
%chris beauvais

setscreen ("graphics:600;480")
setscreen ("nocursour;noecho")
var arrow : string (1)
var column, row : int
column := 300
row := 240
drawfilloval (column, row, 20, 20, 14)
drawfilloval (column - 10, row + 10, 3, 3, 7)
drawfilloval (column + 10, row + 10, 3, 3, 7)
drawfilloval (column, row - 10, 9, 6, 12)
loop
    getch (arrow)
    if ord (arrow) = 205 then
        drawfilloval (column, row, 20, 20, 0)
        column := column + 10
    elsif ord (arrow) = 203 then
        drawfilloval (column, row, 20, 20, 0)
        column := column - 10
    elsif ord (arrow) = 200 then
        drawfilloval (column, row, 20, 20, 0)
        row := row + 10
    elsif ord (arrow) = 208 then
        drawfilloval (column, row, 20, 20, 0)
        row := row - 10


    end if
    drawfilloval (column, row, 20, 20, 14)
    drawfilloval (column - 10, row + 10, 3, 3, 7)
    drawfilloval (column + 10, row + 10, 3, 3, 7)
    drawfilloval (column, row - 10, 9, 6, 12)

end loop
Sponsor
Sponsor
Sponsor
sponsor
the_short1




PostPosted: Thu May 06, 2004 7:49 pm   Post subject: (No subject)

interesting..
... one thing to note.... a multi level pacman is hard..
for mine it took 3000 lines of code (only one level)... not to discourage u... but just a warning... pacman aint ez...




-PacMasta
kit-kat-kid




PostPosted: Fri May 07, 2004 12:10 pm   Post subject: (No subject)

i know pacman aint easy but right now its a start
the_short1




PostPosted: Fri May 07, 2004 11:15 pm   Post subject: (No subject)

as long as u know taht... its good...
and if u need help... im always a PM away... **just dont go nuts and expect me to fork over MY code Razz Wink

so... dont be afraid to ask.,.
kit-kat-kid




PostPosted: Sun May 09, 2004 5:43 pm   Post subject: (No subject)

dont worry i wont
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  [ 5 Posts ]
Jump to:   


Style:  
Search: