id_
This commit is contained in:
parent
b19f58726c
commit
01d272981e
133 changed files with 822 additions and 66 deletions
|
|
@ -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]
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue