love:mike: Blocked player y movement; changed player position

This commit is contained in:
2017-07-05 07:18:32 -07:00
parent 65c418d006
commit 7e844925e8
2 changed files with 8 additions and 9 deletions

View File

@@ -10,7 +10,6 @@ function col_detect(object, display)
if not (object.y >= -1 and
object.y <= (display.height - object.height)) then
return false
end
return true
@@ -26,8 +25,8 @@ function love.load()
-- Create a table to hold all the player data
player = {}
player.x = 250
player.y = 250
player.x = screen.width /2
player.y = screen.height - 50
player.width = 25
player.height = 5