Subdomain Posts
Scheme | 3 days ago
Scheme | 25 days ago
Scheme | 25 days ago
Scheme | 37 days ago
Scheme | 47 days ago
Scheme | 51 days ago
Scheme | 55 days ago
Scheme | 56 days ago
Scheme | 57 days ago
Scheme | 57 days ago
Recent Posts
None | 11 sec ago
None | 12 sec ago
PHP | 17 sec ago
None | 29 sec ago
None | 33 sec ago
PHP | 34 sec ago
None | 47 sec ago
None | 50 sec ago
None | 1 min ago
None | 1 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By lckchen on the 22nd of Jan 2010 11:20:26 PM Download | Raw | Embed | Report
  1. ;Definitionen
  2. (define canvas-height 400)
  3. (define cancas-width 700)
  4.  
  5. ;Pfläche
  6. (define fläche (rectangle 700 400 "solid" "green"))
  7.  
  8. ;Punkt
  9. (define punkt (ellipse 10 10 "solid" "white"))
  10.  
  11. ;Player 1
  12. (define player1 (rectangle 10 75 "solid" "white"))
  13.  
  14. ;player 2
  15. (define player2 (rectangle 10 75 "solid" "blue"))
  16.  
  17. ;Overlay
  18. (overlay (overlay (overlay fläche punkt 345 195) player1 20 (- (/ 400 2) (/ 75 2))) player2 670 (- (/ 400 2) (/ 75 2)))
  19.  
  20. ; Berechnung der n�chsten Position des Punktes
  21. (: next-world-calculation (natural -> natural))
  22. (define next-world-calculation
  23.   (lambda (momentane-punkt-x)
  24.     (if (>= momentane-punkt-x canvas-width)
  25.       ;Fall 1: Punkt ist dem Bildschirm entfleucht
  26.       start-punkt-x  
  27.       ;Fall 2: Punkt ist noch im Bildschirm
  28.       (+ momentane-punkt-x 5)
  29.     )
  30.   )
  31. )
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: