Procházet zdrojové kódy

Locked camera test;

bjorn před 11 roky
rodič
revize
197fe3a1a0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/core/view.lua

+ 1 - 1
lib/core/view.lua

@@ -93,7 +93,7 @@ function View:follow()
   local dis, dir = math.vector(self.target.x, self.target.y, self:mouseX(), self:mouseY())
   local margin = 0.8
   
-  dis = dis / 2
+  dis = 0--dis / 10
  
   self.x = self.target.x + math.dx(dis, dir) - (self.w / 2)
   self.y = self.target.y + math.dy(dis, dir) - (self.h / 2)