turing help, please help me to write another part
Author |
Message |
0411244
|
Posted: Thu Feb 14, 2008 8:39 pm Post subject: turing help, please help me to write another part |
|
|
write a program that draws a bunny on a green background that begins in the bottom left corner of the secreen. Animate the bunny rabbit so that it hops across the screen and stops.
I did the first part which moved the bunny up and right, pleaese help me to write another part that move the bunny down and right .
% Jason Chow
colourback (6)
cls
View.Set("offscreenonly")
% variable
var x: int := 0
var y: int := 0
loop
drawfilloval ( x + 60, y + 70, 20, 40, 0)
drawoval (x + 60, y + 70, 20, 40, 7)
drawfilloval ( x + 35, y + 40, 20, 10, 0)
drawoval (x + 35, y + 40, 20, 10, 7)
drawfilloval (x + 85, y + 40, 20, 10, 0)
drawoval (x + 85, y + 40, 20, 10, 7)
drawfilloval (x + 60, y + 110, 20, 20, 0)
drawoval (x + 60, y + 110, 20, 20, 7)
drawfilloval (x + 50, y + 145, 5, 20, 0)
drawoval ( x + 50, y + 145, 5, 20, 7)
drawfilloval ( x + 70, y + 145, 5, 20, 0)
drawoval (x + 70, y + 145, 5, 20, 7)
View.Update
% stop when bunny rabbit accross the screen
exit when y >= maxy - 350
exit when x >= maxx - 150
delay(20)
cls
% move bunny up and right
x := x + 1
y := y + 1
end loop |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Mackie

|
Posted: Thu Feb 14, 2008 8:49 pm Post subject: RE:turing help, please help me to write another part |
|
|
Is this an assignment? |
|
|
|
|
 |
0411244
|
Posted: Thu Feb 14, 2008 8:57 pm Post subject: Re: turing help, please help me to write another part |
|
|
this is an assignment but i really don't how how to fix it next, please help me!
\ |
|
|
|
|
 |
Mackie

|
Posted: Thu Feb 14, 2008 9:26 pm Post subject: RE:turing help, please help me to write another part |
|
|
Well, according to forum rules we aren't allowed to do it for you, if we did, you wouldn't learn.
As for moving the bunny down, just look at what you're doing to the Y, if increasing it makes it go up? Decreasign it... See where it's going? |
|
|
|
|
 |
|
|