summaryrefslogtreecommitdiff
path: root/game.html.coffee
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2014-12-26 13:28:56 (GMT)
committerMichele Bini <michele.bini@gmail.com>2014-12-26 13:29:38 (GMT)
commitdadacc4b3c09fcad725b8a46b3c2218c1d79261f (patch)
treeadb2ff0f21f67e24b94680a9ec8a130c8a9d95bd /game.html.coffee
parent4a3d6c018f0579179e7a2a5b3f2a6f9d37ab5dc9 (diff)
Improve heroine movement
Diffstat (limited to 'game.html.coffee')
-rw-r--r--game.html.coffee6
1 files changed, 4 insertions, 2 deletions
diff --git a/game.html.coffee b/game.html.coffee
index 28d6b7a..8f3e453 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.343"
+version = "0.2.347"
{ htmlcup } = require 'htmlcup'
@@ -412,11 +412,13 @@ genPage = ->
vx = 0
else
vx += ax
+ # vx *= 0.9
if ay * vy < 0
vy = 0
else
vy += ay
- if (vx * vx + vy * vy * 2) > 6
+ # vy * 0.9
+ if (vx * vx + vy * vy * 2) > 35
vx *= 0.8
vy *= 0.8
else