summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-19 12:19:04 +0200
committerAki <nthirtyone@gmail.com>2016-05-19 12:19:04 +0200
commit06ab90aeb91f4287adf3144778f72ee6a9b5f3c6 (patch)
tree486b320e7cda154b529086aa92caab9e0c1215a3
parent272ae9e4589d4b473641972aa1e7469deff76d1c (diff)
downloadroflnauts-06ab90aeb91f4287adf3144778f72ee6a9b5f3c6.zip
roflnauts-06ab90aeb91f4287adf3144778f72ee6a9b5f3c6.tar.gz
roflnauts-06ab90aeb91f4287adf3144778f72ee6a9b5f3c6.tar.bz2
Constant(s) changes :> :>
-rw-r--r--camera.lua6
-rw-r--r--conf.lua4
2 files changed, 5 insertions, 5 deletions
diff --git a/camera.lua b/camera.lua
index 461080a..adc1041 100644
--- a/camera.lua
+++ b/camera.lua
@@ -45,7 +45,7 @@ end
-- Move follow
function Camera:follow ()
- local x,y,i = 105, 120, 1
+ local x,y,i = 145, 90, 1
for k,point in pairs(self.world.Nauts) do
if point.body:getX() > -20 and point.body:getX() < 310 and
point.body:getY() > -70 and point.body:getY() < 200 then
@@ -63,7 +63,7 @@ end
function Camera:update (dt)
self:follow()
local dx, dy = self:getDestination()
- dx = (dx - self.x) * 8 * dt
- dy = (dy - self.y) * 8 * dt
+ dx = (dx - self.x) * 6 * dt
+ dy = (dy - self.y) * 6 * dt
self:setPosition(self.x + dx, self.y + dy)
end \ No newline at end of file
diff --git a/conf.lua b/conf.lua
index c8c315a..31f1ff5 100644
--- a/conf.lua
+++ b/conf.lua
@@ -2,7 +2,7 @@ function love.conf(t)
t.title = "notnauts"
t.version = "0.10.1"
t.window.icon = "assets/icon.png"
- t.window.width = 315*4
- t.window.height = 200*4
+ t.window.width = 290*4
+ t.window.height = 180*4
t.console = true
end \ No newline at end of file