diff options
| author | Michele Bini <michele.bini@gmail.com> | 2015-10-30 01:55:08 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2015-10-30 01:55:08 (GMT) |
| commit | 9b07696cf622ac2428ea8f2e775d84942fb1c616 (patch) | |
| tree | 812e431b9bebb4e0469fb19c42745bd79730631c | |
| parent | 2b9de5492df66fef246553802e3aed3038cf1959 (diff) | |
various tweaks and layout fixes, remove unused code
| -rw-r--r-- | game.html.coffee | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/game.html.coffee b/game.html.coffee index a37fd18..04345cf 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.524" +version = "0.2.617" htmlcup <. require 'htmlcup' @@ -80,15 +80,6 @@ genPage = -> @jsFile "lib/Evolving/evolving.js" @coffeeScript -> do -> - # reportErrors = (x)-> - # try - # x() - # catch error - # try - # alert error.toString() - # catch error2 - # alert error - screen_x1 = 120 screen_y1 = 180 { sqrt, sin, cos, tan, pow, atan, atan2, round, log, exp, random } = Math @@ -114,7 +105,6 @@ genPage = -> evolve.call c::, -> @ .< evolve Basic.evolution.call @ - @ .< Basic @ @brew = (name, base, evolution)@> @[name] = base::namedEvolve(name, evolution) @@ -133,8 +123,8 @@ genPage = -> c = -> c.prototype = @ new c().process(x) + @Basic = @constructor @ - Basic::Basic = Basic Demo = Basic::evolve -> @keyCodes = { left: leftKey, right: rightKey, up: upKey, down: downKey, space: spaceKey } = jaws.keyCodes @brew 'Sprite', @importClass(jaws.Sprite), -> @@ -420,14 +410,6 @@ genPage = -> @move = -> touch <. @ - # { tx, ty } = touch - # itx = (tx >= 2 then 2 else tx <= -2 then -2 else 0) - # ity = (ty >= 2 then 2 else ty <= -2 then -2 else 0) - # touch.tx = tx * 0.9 - itx - # touch.ty = ty * 0.9 - ity - # itx = - itx / 2 - # ity = - ity / 2 - itx = touch.ax * 0.088 ity = touch.ay * 0.088 |
