Computer Science Canada

pacman please help

Author:  filiplikesprogramming [ 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

Author:  Panphobia [ 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.

Author:  Raknarg [ Wed May 15, 2013 8:02 am ]
Post subject:  RE:pacman please help

http://compsci.ca/holtsoft/doc/ look up Draw.FillArc


: