#reader(lib "htdp-beginner-reader.ss" "lang")((modname falling-ball-posn) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ())))
(define WIDTH 320)
(define HEIGHT 480)
(define RADIUS 5)
(define (tick w)
(make-posn (+ (posn-x w) 5)
(+ (posn-y w) 5)))
(define (hits-floor? w)
(>= (posn-y w) HEIGHT))
(define (draw-scene w)
(place-image (circle RADIUS "solid" "red")
(posn-x w)
(posn-y w)
(empty-scene WIDTH HEIGHT)))
(big-bang WIDTH HEIGHT (make-posn 0 0)
(on-tick 1/15 tick)
(on-redraw draw-scene)
(stop-when hits-floor?))