Here's my love.load function:
Code: Select all
function love.load()
player = {
sprite = love.graphics.newImage("guy.png"),
spriteBatch = love.graphics.newSpriteBatch(sprite, 3),
standing = love.graphics.newQuad(0, 0, 0, 0, 20, 40),
height = 40,
width = 20,
x = gameWidth / 2,
y = gameHeight - 100,
y_velocity = 0,
inAir = false,
}
gravity = 400
jump_height = 300
end
What seems to be the problem? I've been trying to figure this out for a while.
Thanks!