Sub LG_Resize(Width As Int, Height As Int)
'Sets the camera viewport
Camera.Initialize
Camera.SetToOrtho2(True, lGdx.graphics.Width, lGdx.Graphics.Height)
CamReset = Camera.Position 'This is a global variable (lgMathVector2)
End Sub
Sub LG_Render
...
If ScreenShakeActive Then
'Shake Code Goes Here
Else
Camera.Position = cam.Reset 'This is illegal because Camera.Position is read-only! :(
End If
Camera.Update
...
End Sub