diff options
Diffstat (limited to 'game.html.coffee')
| -rw-r--r-- | game.html.coffee | 6 |
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 |
