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