rewritten
This commit is contained in:
parent
3ae6c416e5
commit
286871ca21
5 changed files with 15 additions and 15 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue