summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHume2 <teratux.mail@gmail.com>2018-08-28 22:06:56 +0200
committerHume2 <teratux.mail@gmail.com>2018-08-28 22:06:56 +0200
commit13ab931e68b2c7fa9abb2ec4a6d60ac60f45dd92 (patch)
tree9addf8e185ff5deca7d42ce9f2133a53655d5ce8
parentd55b6cb0e7b205cf60aaadab35c7e2311b8bb96c (diff)
Tweaked acceleraction a bit
-rw-r--r--init.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index e960d1b..11f9f97 100644
--- a/init.lua
+++ b/init.lua
@@ -158,9 +158,11 @@ function bike.on_step(self, dtime)
end
if ctrl.up then
- self.v = self.v + 0.3 * agility
+ self.v = self.v + 0.2 * agility
elseif ctrl.down then
- self.v = self.v - 1.2 * agility
+ self.v = self.v - 0.5 * agility
+ else
+ self.v = self.v - 0.05 * agility
end
if ctrl.left then
@@ -175,7 +177,6 @@ function bike.on_step(self, dtime)
return
end
local s = get_sign(self.v)
- self.v = self.v - 0.004 * s
if s ~= get_sign(self.v) then
self.object:set_velocity({x = 0, y = 0, z = 0})
self.v = 0