16 lines
No EOL
401 B
Lua
16 lines
No EOL
401 B
Lua
require "entity"
|
|
|
|
Artifact = class("Artifact", Entity)
|
|
|
|
function Artifact:initialize(x, y, color)
|
|
print(artifactSprite:getWidth(), artifactSprite:getHeight())
|
|
Entity.initialize(self, {
|
|
x = x,
|
|
y = y,
|
|
sizeX = artifactSprite:getWidth() / 16,
|
|
sizeY = artifactSprite:getHeight() / 16,
|
|
color = color,
|
|
collision = "unmoveable", --player can't push other player
|
|
sprite = artifactSprite
|
|
})
|
|
end |