lua-love-platformer/player.lua
2018-01-17 23:06:17 -05:00

5 lines
199 B
Lua

player = {}
player.body = love.physics.newBody(myWorld, 100, 100, 'dynamic')
player.shape = love.physics.newRectangleShape(66, 92)
player.fixture = love.physics.newFixture(player.body, player.shape)