summaryrefslogtreecommitdiff
path: root/objects/Loot.lua
blob: 2621f66f867cda5a37f7561abf53abb2f22cae3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local Body = require "objects.Body"

local Loot = {}
Loot.__index = Loot

function Loot:new(name, x, y)
    local obj = {
        x = x or nil,
        y = y or nil,
        type = name,
        body = Body:new("circle", config.lootSize)
    }

    setmetatable(obj, Loot)

    return obj
end

return Loot