瀏覽代碼

Update Boxes example;

Uses correct name for simulator driver.  Remove unused variable.
bjorn 6 月之前
父節點
當前提交
9cad2f4268
共有 1 個文件被更改,包括 1 次插入3 次删除
  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)
 end
 
-local isFirstFrame = true
-
 function lovr.update(dt)
   -- Update the physics simulation
   world:update(dt)
@@ -51,7 +49,7 @@ function lovr.draw(pass)
     drawBox(pass, box)
   end
 
-  if lovr.headset.getDriver() ~= 'desktop' then
+  if lovr.headset.getDriver() ~= 'simulator' then
     pass:setColor(0, 0, 1)
     for i, box in ipairs(controllerBoxes) do
       drawBox(pass, box)