Skip to content

Commit 54fc6ca

Browse files
authored
Update step4.html
1 parent 5027e70 commit 54fc6ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bunny/step4.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ <h1>Heeey, I'm Jumping Bunny!</h1>
4444
(bunnyMove 0 0)
4545

4646
(define (updatePosition)
47-
(if (>= y (- fieldH bunnyH)) (set! vy -2))
48-
(if (>= x (- fieldW bunnyW)) (set! vx -2))
47+
(if (>= y (- fieldH (element-height bunny))) (set! vy -2))
48+
(if (>= x (- fieldW (element-width bunny))) (set! vx -2))
4949
(if (<= y 0) (set! vy 2))
5050
(if (<= x 0) (set! vx 2))
5151
(set! x (+ x vx))

0 commit comments

Comments
 (0)