diff options
Diffstat (limited to 'objects/Obstacle.lua')
| -rw-r--r-- | objects/Obstacle.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/objects/Obstacle.lua b/objects/Obstacle.lua index 51a1ee6..74297cd 100644 --- a/objects/Obstacle.lua +++ b/objects/Obstacle.lua @@ -13,7 +13,9 @@ function Obstacle:new(name, location, body) presetLocation = (type(location) == "string" and location) or nil, x = (type(location) == "table" and location.x) or nil, y = (type(location) == "table" and location.y) or nil, - body = body or Body:new("rectangle", 50, 50) + body = body or Body:new("rectangle", 50, 50), + w = 50, + h = 50, } setmetatable(obj, Obstacle) |
