lua-love-platformer/player.lua

5 lines
199 B
Lua
Raw Normal View History

2018-01-18 03:51:14 +00:00
player = {}
2018-01-18 04:06:17 +00:00
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)