Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed player: throw now returns snowball%

  • Loading branch information...
commit 2a4a20be006402f5105f599e58c95079f97ffbe5 1 parent a06476e
Benjamin Lind authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 init.rkt
View
4 init.rkt
@@ -4,7 +4,7 @@
(class object%
(super-new)
- (field (x 0) (y 0) ;; possition of object on screen
+ (field (x 0) (y 0) ;; position of object on screen
(sx 0) (sy 0) ;; space occupied by object on screen
(sprite "")) ;; path to image representing object on screen
@@ -40,7 +40,7 @@
;---------------actions----------------------
(define/public (hit!) (if (> hp 0) (set! hp (- hp 1)) (display "Error already dead!")))
- (define/public (throw!) (display "Throwing snowball...")))) ;; Temporary
+ (define/public (throw) (new snowball%))))
Please sign in to comment.
Something went wrong with that request. Please try again.