Advertisement
Guest User

Untitled

a guest
May 9th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Racket 0.58 KB | None | 0 0
  1. (define (draw_world world tail)
  2.   (place-images
  3.     (list (square 32 "solid" "white")
  4.           (square 32 "solid" "blue")
  5.  
  6.           ;place-images: expects an image-list as first argument, given (list (object:image% ...) (object:image% ...) #<void>)
  7.           (for ([i tail]) (square 32 "solid" "red"))
  8.           )
  9.     (list (make-posn (get_x world) (get_y world))
  10.           (make-posn (get_fruit_x world) (get_fruit_y world))
  11.           (for ([i tail]) (make-posn (tail_cell-x i) (tail_cell-y i)))
  12.           )
  13.     (empty-scene (screen_width world) (screen_height world) "black")
  14.    ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement