Skip to content

Instantly share code, notes, and snippets.

@videlais
Created April 10, 2018 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save videlais/72ffbb5244eaec2fbe73cba2c4d284f8 to your computer and use it in GitHub Desktop.
Save videlais/72ffbb5244eaec2fbe73cba2c4d284f8 to your computer and use it in GitHub Desktop.
update draw.lua for drawing images
function love.draw()
-- Draw the player.image texture at the coordinates of getX() and getY()
love.graphics.draw(player.image, player.body:getX(), player.body:getY() )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment