summaryrefslogtreecommitdiff
path: root/game.html.coffee
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2014-12-26 13:13:38 (GMT)
committerMichele Bini <michele.bini@gmail.com>2014-12-26 13:13:38 (GMT)
commitf7992c102c465ea91426cf23dedc5c4cf52a9c70 (patch)
tree9681419587b248319962508db0b526bbefbc8ec9 /game.html.coffee
parent1dbe8ed0545c3a459337ffbefce8c6a75535c16b (diff)
Fix heroine's movement
Diffstat (limited to 'game.html.coffee')
-rw-r--r--game.html.coffee5
1 files changed, 4 insertions, 1 deletions
diff --git a/game.html.coffee b/game.html.coffee
index ad2c289..5c5f012 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.340"
+version = "0.2.341"
{ htmlcup } = require 'htmlcup'
@@ -387,6 +387,9 @@ 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