aboutsummaryrefslogtreecommitdiff
path: root/objects.lua
blob: fa04ee80b618f59ccf50fa67bb6823b8cde52895 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
obj = {}

function updateobjs()
    foreach(players, function(obj) obj:update() end)
    foreach(enemies, function(obj) obj:update() end)
    foreach(obj, function(obj) obj:update() end)
end

function drawobjs()
    foreach(obj, function(obj) obj:draw() end)
    foreach(enemies, function(obj) obj:draw() end)
    foreach(players, function(obj) obj:draw() end)
end