|
@@ -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)
|