Skip to content

Commit 6a76434

Browse files
NighelDendaMobjunk
andauthored
Updated camera.lua (#73)
Sorted a issue where it used DISPLAY_WIDTH instead of DISPLAY_HEIGHT for vertical camera shaking Co-authored-by: Mobjunk <[email protected]>
1 parent a895824 commit 6a76434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orthographic/camera.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ function M.update(camera_id, dt)
436436
camera.shake.offset.x = (DISPLAY_WIDTH * camera.shake.intensity) * (math.random() - 0.5)
437437
end
438438
if camera.shake.vertical then
439-
camera.shake.offset.y = (DISPLAY_WIDTH * camera.shake.intensity) * (math.random() - 0.5)
439+
camera.shake.offset.y = (DISPLAY_HEIGHT * camera.shake.intensity) * (math.random() - 0.5)
440440
end
441441
end
442442
end

0 commit comments

Comments
 (0)