Skip to content

Instantly share code, notes, and snippets.

@videlais

videlais/draw.lua Secret

Created Apr 10, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.