diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-08-30 06:43:01 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-08-30 06:44:54 -0700 |
commit | 7e97a2a1e7564c410236c012d7a6c4b0f141484d (patch) | |
tree | 20616ce5d79e2b69076ef16b3b3502e649e5c07c /app.lua | |
parent | ca4ad8a9e50b62999566a211babc324b5a846feb (diff) | |
download | lines.love-7e97a2a1e7564c410236c012d7a6c4b0f141484d.tar.gz |
make a few names consistent with snake_case
Diffstat (limited to 'app.lua')
-rw-r--r-- | app.lua | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/app.lua b/app.lua index 87211ef..7099596 100644 --- a/app.lua +++ b/app.lua @@ -169,12 +169,12 @@ function App.screen.check(y, expected_contents, msg) check_eq(contents, expected_contents, msg) end --- If you access the time using App.getTime instead of love.timer.getTime, +-- If you access the time using App.get_time instead of love.timer.getTime, -- tests will be able to move the time back and forwards as needed using -- App.wait_fake_time below. App.time = 1 -function App.getTime() +function App.get_time() return App.time end function App.wait_fake_time(t) @@ -185,16 +185,16 @@ function App.width(text) return love.graphics.getFont():getWidth(text) end --- If you access the clipboard using App.getClipboardText and --- App.setClipboardText instead of love.system.getClipboardText and --- love.system.setClipboardText respectively, tests will be able to manipulate --- the clipboard by reading/writing App.clipboard. +-- If you access the clipboard using App.get_clipboard and App.set_clipboard +-- instead of love.system.getClipboardText and love.system.setClipboardText +-- respectively, tests will be able to manipulate the clipboard by +-- reading/writing App.clipboard. App.clipboard = '' -function App.getClipboardText() +function App.get_clipboard() return App.clipboard end -function App.setClipboardText(s) +function App.set_clipboard(s) App.clipboard = s end @@ -417,9 +417,9 @@ function App.disable_tests() end end end - App.getTime = love.timer.getTime - App.getClipboardText = love.system.getClipboardText - App.setClipboardText = love.system.setClipboardText + App.get_time = love.timer.getTime + App.get_clipboard = love.system.getClipboardText + App.set_clipboard = love.system.setClipboardText App.key_down = love.keyboard.isDown App.mouse_move = love.mouse.setPosition App.mouse_down = love.mouse.isDown |