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

Username:   Password: 
 RegisterRegister   
 pacman please help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
filiplikesprogramming




PostPosted: Tue May 14, 2013 8:20 pm   Post subject: pacman please help

how do i make it so that my pacman has mouth useing craters sorry im just a starter

setscreen("graphics:800;600")
setscreen("offscreenonly")
var chars : array char of boolean
var x : int := 100
var y : int := 100
loop
cls
Input.KeyDown (chars)
if chars (KEY_UP_ARROW) then
y := y + 2
end if
if chars (KEY_DOWN_ARROW) then
y := y - 2
end if
if chars (KEY_RIGHT_ARROW) then
x := x + 2
end if
if chars (KEY_LEFT_ARROW) then
x := x - 2
end if
drawfilloval(x,y,15,15,yellow)
View.Update
end loop
Sponsor
Sponsor
Sponsor
sponsor
Panphobia




PostPosted: Tue May 14, 2013 8:35 pm   Post subject: RE:pacman please help

what are craters? and you can make a pacman mouth like the game with arcs, using variables to represent degrees, so it flaps back and forth.
Raknarg




PostPosted: Wed May 15, 2013 8:02 am   Post subject: RE:pacman please help

http://compsci.ca/holtsoft/doc/ look up Draw.FillArc
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: