This commit is contained in:
0x81c 2015-03-25 01:38:53 -04:00 committed by Your Name
parent b19f58726c
commit 01d272981e
133 changed files with 822 additions and 66 deletions

View file

@ -3,10 +3,10 @@ require "entity"
Switch = class("Switch", Entity)
Switch.static.sprites = {
red = love.graphics.newImage("art/switch_r.png"),
green = love.graphics.newImage("art/switch_g.png"),
blue = love.graphics.newImage("art/switch_b.png"),
pressed = love.graphics.newImage("art/switch_pressed.png")
red = love.graphics.newImage("art/game/switch_r.png"),
green = love.graphics.newImage("art/game/switch_g.png"),
blue = love.graphics.newImage("art/game/switch_b.png"),
pressed = love.graphics.newImage("art/game/switch_pressed.png")
}
function Switch:initialize(x, y, color)
@ -15,6 +15,7 @@ function Switch:initialize(x, y, color)
y = y,
color = color,
collision = "none", --switches are floor elements that can't be pushed or bloc movement!!
cellShape = {{x = 1, y = 1}},
sprite = sprites.switch[color]
})