diff options
| author | Michele Bini <michele.bini@gmail.com> | 2014-12-26 13:16:54 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2014-12-26 13:16:54 (GMT) |
| commit | 2543d9f985f34635b2b9f77a480f6482573d7bcc (patch) | |
| tree | 45df3b43b60698cdb18ebe07f730a306818afa45 /game.html.coffee | |
| parent | f7992c102c465ea91426cf23dedc5c4cf52a9c70 (diff) | |
Fix heroine's movement, try n.2
Diffstat (limited to 'game.html.coffee')
| -rw-r--r-- | game.html.coffee | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/game.html.coffee b/game.html.coffee index 5c5f012..fe6f98d 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.2.341" +version = "0.2.342" { htmlcup } = require 'htmlcup' @@ -387,9 +387,6 @@ genPage = -> if (s = fvx * fvx + fvy * fvy * 2) > 6 fvx *= 0.8 fvy *= 0.8 - else - fvx *= 0.95 - fvy *= 0.95 @px = (@fpx += (@fvx = fvx))|0 @py = (@fpy += (@fvy = fvy))|0 @vx = fvx|0 @@ -422,6 +419,9 @@ genPage = -> if (vx * vx + vy * vy * 2) > 6 vx *= 0.8 vy *= 0.8 + else + fvx *= 0.95 + fvy *= 0.95 @vx = vx @vy = vy @px = (@fpx += @vx) |
