Skip to content

Instantly share code, notes, and snippets.

@videlais
Created April 10, 2018 01:19
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/26f43ac8869ef6e39e5d57a47e13250f to your computer and use it in GitHub Desktop.
Save videlais/26f43ac8869ef6e39e5d57a47e13250f to your computer and use it in GitHub Desktop.
Updated draw.lua with physics
function love.draw()
-- Draw the rectangle using:
-- "fill" (fill in the shape)
-- Using the X of player.body
-- Using the Y of player.body
-- Using the player.width
-- Using the player.height
love.graphics.rectangle("fill", player.body:getX(), player.body:getY(), player.width, player.height )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment