some changes, idr, hehe sorry
This commit is contained in:
parent
c668dc513b
commit
b553d3f664
5 changed files with 116 additions and 48 deletions
17
switch.lua
Normal file
17
switch.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue