wowowowowowowo so much stuff
This commit is contained in:
parent
fe21cb61e3
commit
2f40eaf000
249 changed files with 391 additions and 20 deletions
16
artifact.lua
Normal file
16
artifact.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue