SFX and some more sprites
This commit is contained in:
parent
277a040f5f
commit
030b35e4fa
26 changed files with 128 additions and 11 deletions
|
|
@ -41,7 +41,7 @@
|
|||
width
|
||||
(cond
|
||||
((eqv? entity 'player) (make-color 0 0 1 1))
|
||||
((eqv? entity 'foe) (make-color 1 0 0 1))
|
||||
((eqv? entity 'enemy) (make-color 1 0 0 1))
|
||||
(else (make-color 0 0 0 1)))
|
||||
(not (eqv? entity 'none))
|
||||
2)))))
|
||||
|
|
|
|||
|
|
@ -208,6 +208,7 @@
|
|||
;; If button is clicked, exec button click func
|
||||
(define (do-button-callback button)
|
||||
(when (eqv? 'clicked (button-state button))
|
||||
(play-sound (load-sound "../res/sfx/click.wav"))
|
||||
((button-click-fn button))))
|
||||
|
||||
;; Needs to be added to do buttons
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue