Ver código fonte

Update Boxes example;

Uses correct name for simulator driver.  Remove unused variable.
bjorn 5 meses atrás
pai
commit
9cad2f4268
1 arquivos alterados com 1 adições e 3 exclusões
  1. 1 3
      examples/Physics/Boxes/main.lua

+ 1 - 3
examples/Physics/Boxes/main.lua

@@ -21,8 +21,6 @@ function lovr.load()
   lovr.graphics.setBackgroundColor(.8, .8, .8)
   lovr.graphics.setBackgroundColor(.8, .8, .8)
 end
 end
 
 
-local isFirstFrame = true
-
 function lovr.update(dt)
 function lovr.update(dt)
   -- Update the physics simulation
   -- Update the physics simulation
   world:update(dt)
   world:update(dt)
@@ -51,7 +49,7 @@ function lovr.draw(pass)
     drawBox(pass, box)
     drawBox(pass, box)
   end
   end
 
 
-  if lovr.headset.getDriver() ~= 'desktop' then
+  if lovr.headset.getDriver() ~= 'simulator' then
     pass:setColor(0, 0, 1)
     pass:setColor(0, 0, 1)
     for i, box in ipairs(controllerBoxes) do
     for i, box in ipairs(controllerBoxes) do
       drawBox(pass, box)
       drawBox(pass, box)