wowowowowowowo so much stuff

This commit is contained in:
0x81c 2015-03-14 05:36:02 -04:00
parent fe21cb61e3
commit 2f40eaf000
249 changed files with 391 additions and 20 deletions

16
artifact.lua Normal file
View 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