some changes, idr, hehe sorry

This commit is contained in:
0x81c 2015-03-15 05:26:47 -04:00
parent c668dc513b
commit b553d3f664
5 changed files with 116 additions and 48 deletions

17
switch.lua Normal file
View file

@ -0,0 +1,17 @@
require "entity"
Switch = class("Switch", Entity)
function Switch:initialize(x, y, color)
print("hey!!", x, y, color)
print(color)
Entity.initialize(self, {
x = x,
y = y,
sizeX = 1,
sizeY = 1,
color = color,
collision = "none", --switches are floor elements that can't be pushed or bloc movement!!
sprite = switchSprite[color]
})
end