diff options
author | David Thompson <dthompson2@worcester.edu> | 2016-05-03 22:08:02 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2016-05-03 22:08:02 -0400 |
commit | ca6e25c2a5e4e7ef7ca3b2e2dc26f7d4fab805f4 (patch) | |
tree | 730312468dc85784d89b055877cc278ceefa442f | |
parent | a0c2bcc7cde0e4c1fb50a361f320774edea6b688 (diff) |
Animate enemies.
-rw-r--r-- | game.scm | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -752,7 +752,15 @@ each time KEY is pressed." ('popcorn-light 4) ('pincer-dark 8) ('pincer-light 12)) - (if hit? 2 0))))) + (if hit? + ;; Use the hit + ;; indicator frame. + 2 + ;; Swap between the + ;; 2 normal + ;; animation frames. + (modulo (round (/ time 5)) + 2)))))) (sprite-batch-add! batch context tex rect))) enemies)))) |