We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5027e70 commit 54fc6caCopy full SHA for 54fc6ca
bunny/step4.html
@@ -44,8 +44,8 @@ <h1>Heeey, I'm Jumping Bunny!</h1>
44
(bunnyMove 0 0)
45
46
(define (updatePosition)
47
- (if (>= y (- fieldH bunnyH)) (set! vy -2))
48
- (if (>= x (- fieldW bunnyW)) (set! vx -2))
+ (if (>= y (- fieldH (element-height bunny))) (set! vy -2))
+ (if (>= x (- fieldW (element-width bunny))) (set! vx -2))
49
(if (<= y 0) (set! vy 2))
50
(if (<= x 0) (set! vx 2))
51
(set! x (+ x vx))
0 commit comments