rewritten

This commit is contained in:
0x81c 2015-03-14 06:18:04 -04:00
parent 3ae6c416e5
commit 286871ca21
5 changed files with 15 additions and 15 deletions

View file

@ -3,14 +3,11 @@ 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
collision = "unmoveable",
sprite = artifactSprite
})
end