Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tiny spellcheck #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pong-4/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function love.load()
-- more "retro-looking" font object we can use for any text
smallFont = love.graphics.newFont('font.ttf', 8)

-- set LÖVE2D's active font to the smallFont obect
-- set LÖVE2D's active font to the smallFont object
love.graphics.setFont(smallFont)

-- initialize window with virtual resolution
Expand Down Expand Up @@ -91,7 +91,7 @@ function love.update(dt)
player1Y = math.max(0, player1Y + -PADDLE_SPEED * dt)
elseif love.keyboard.isDown('s') then
-- add positive paddle speed to current Y scaled by deltaTime
-- math.min returns the lesser of two values; bottom of the egde minus paddle height
-- math.min returns the lesser of two values; bottom of the edge minus paddle height
-- and player Y will ensure we don't go below it
player1Y = math.min(VIRTUAL_HEIGHT - 20, player1Y + PADDLE_SPEED * dt)
end
Expand Down