Skip to content
Open
Show file tree
Hide file tree
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 bird10/Bird.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Bird:update(dt)
self.dy = self.dy + GRAVITY * dt

-- add a sudden burst of negative gravity if we hit space
if love.keyboard.wasPressed('space') then
if love.keyboard.wasPressed(' ') then
self.dy = -5
end

Expand All @@ -59,4 +59,4 @@ end

function Bird:render()
love.graphics.draw(self.image, self.x, self.y)
end
end
4 changes: 2 additions & 2 deletions bird11/Bird.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ end
function Bird:update(dt)
self.dy = self.dy + GRAVITY * dt

if love.keyboard.wasPressed('space') then
if love.keyboard.wasPressed(' ') then
self.dy = -5
sounds['jump']:play()
end
Expand All @@ -54,4 +54,4 @@ end

function Bird:render()
love.graphics.draw(self.image, self.x, self.y)
end
end
4 changes: 2 additions & 2 deletions bird12/Bird.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ end
function Bird:update(dt)
self.dy = self.dy + GRAVITY * dt

if love.keyboard.wasPressed('space') or love.mouse.wasPressed(1) then
if love.keyboard.wasPressed(' ') or love.mouse.wasPressed(1) then
self.dy = -5
sounds['jump']:play()
end
Expand All @@ -54,4 +54,4 @@ end

function Bird:render()
love.graphics.draw(self.image, self.x, self.y)
end
end
4 changes: 2 additions & 2 deletions bird4/Bird.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function Bird:update(dt)
self.dy = self.dy + GRAVITY * dt

-- add a sudden burst of negative gravity if we hit space
if love.keyboard.wasPressed('space') then
if love.keyboard.wasPressed(' ') then
self.dy = -5
end

Expand All @@ -41,4 +41,4 @@ end

function Bird:render()
love.graphics.draw(self.image, self.x, self.y)
end
end
4 changes: 2 additions & 2 deletions bird5/Bird.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function Bird:update(dt)
self.dy = self.dy + GRAVITY * dt

-- add a sudden burst of negative gravity if we hit space
if love.keyboard.wasPressed('space') then
if love.keyboard.wasPressed(' ') then
self.dy = -5
end

Expand All @@ -41,4 +41,4 @@ end

function Bird:render()
love.graphics.draw(self.image, self.x, self.y)
end
end
4 changes: 2 additions & 2 deletions bird6/Bird.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function Bird:update(dt)
self.dy = self.dy + GRAVITY * dt

-- add a sudden burst of negative gravity if we hit space
if love.keyboard.wasPressed('space') then
if love.keyboard.wasPressed(' ') then
self.dy = -5
end

Expand All @@ -41,4 +41,4 @@ end

function Bird:render()
love.graphics.draw(self.image, self.x, self.y)
end
end
4 changes: 2 additions & 2 deletions bird7/Bird.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Bird:update(dt)
self.dy = self.dy + GRAVITY * dt

-- add a sudden burst of negative gravity if we hit space
if love.keyboard.wasPressed('space') then
if love.keyboard.wasPressed(' ') then
self.dy = -5
end

Expand All @@ -59,4 +59,4 @@ end

function Bird:render()
love.graphics.draw(self.image, self.x, self.y)
end
end
4 changes: 2 additions & 2 deletions bird8/Bird.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Bird:update(dt)
self.dy = self.dy + GRAVITY * dt

-- add a sudden burst of negative gravity if we hit space
if love.keyboard.wasPressed('space') then
if love.keyboard.wasPressed(' ') then
self.dy = -5
end

Expand All @@ -59,4 +59,4 @@ end

function Bird:render()
love.graphics.draw(self.image, self.x, self.y)
end
end
4 changes: 2 additions & 2 deletions bird9/Bird.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Bird:update(dt)
self.dy = self.dy + GRAVITY * dt

-- add a sudden burst of negative gravity if we hit space
if love.keyboard.wasPressed('space') then
if love.keyboard.wasPressed(' ') then
self.dy = -5
end

Expand All @@ -59,4 +59,4 @@ end

function Bird:render()
love.graphics.draw(self.image, self.x, self.y)
end
end