diff options
| author | Michele Bini <michele.bini@gmail.com> | 2014-10-05 22:00:19 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2014-10-05 22:00:19 (GMT) |
| commit | 5fff25d8a1328f0c1bff5a401e99d4f630b3e80a (patch) | |
| tree | 0a38887ca6967a814531e21a19e4784f70b6663f /game.html.coffee | |
| parent | 2174455ae8a9e5fc346aaea62a9e2e18c5e969e9 (diff) | |
Tweak generation of new objects
Diffstat (limited to 'game.html.coffee')
| -rw-r--r-- | game.html.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/game.html.coffee b/game.html.coffee index 4184cca..9cd6c7e 100644 --- a/game.html.coffee +++ b/game.html.coffee @@ -4,7 +4,7 @@ # This program is available under the terms of the MIT License -version = "0.1.54" +version = "0.1.56" { htmlcup } = require 'htmlcup' @@ -285,7 +285,7 @@ genPage = -> @vaquitas.push v draw: -> jaws.clear() - @addVaquita() if @vaquitas.length < 7 or jaws.pressed[spaceKey] + @addVaquita() if (!(@gameloop.ticks & 0x7f) and @vaquitas.length < 7) or jaws.pressed[spaceKey] v.draw() for v in @vaquitas if (@gameloop.ticks & 0xff) is 0xff fps.innerHTML = " - #{@gameloop.fps} fps" |
