mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 19:19:02 -06:00
Added safe-lock back to Survival CK.
This commit is contained in:
parent
a8d697064c
commit
843b1e108a
@ -267,8 +267,12 @@ function Grid:draw()
|
|||||||
if self.grid_age[y][x] < 2 then
|
if self.grid_age[y][x] < 2 then
|
||||||
love.graphics.setColor(1, 1, 1, 1)
|
love.graphics.setColor(1, 1, 1, 1)
|
||||||
love.graphics.draw(blocks[self.grid[y][x].skin]["F"], 48+x*16, y*16)
|
love.graphics.draw(blocks[self.grid[y][x].skin]["F"], 48+x*16, y*16)
|
||||||
|
else
|
||||||
|
if self.grid[y][x].skin == "bone" then
|
||||||
|
love.graphics.setColor(1, 1, 1, 1)
|
||||||
else
|
else
|
||||||
love.graphics.setColor(0.5, 0.5, 0.5, 1)
|
love.graphics.setColor(0.5, 0.5, 0.5, 1)
|
||||||
|
end
|
||||||
love.graphics.draw(blocks[self.grid[y][x].skin][self.grid[y][x].colour], 48+x*16, y*16)
|
love.graphics.draw(blocks[self.grid[y][x].skin][self.grid[y][x].colour], 48+x*16, y*16)
|
||||||
end
|
end
|
||||||
if self.grid[y][x].skin ~= "bone" then
|
if self.grid[y][x].skin ~= "bone" then
|
||||||
|
@ -22,6 +22,7 @@ function SurvivalCKGame:new()
|
|||||||
|
|
||||||
self.randomizer = History6RollsRandomizer()
|
self.randomizer = History6RollsRandomizer()
|
||||||
|
|
||||||
|
self.lock_drop = true
|
||||||
self.enable_hold = true
|
self.enable_hold = true
|
||||||
self.next_queue_length = 3
|
self.next_queue_length = 3
|
||||||
|
|
||||||
|
@ -34,6 +34,8 @@ function Ruleset:new()
|
|||||||
C = love.graphics.newImage("res/img/bone.png"),
|
C = love.graphics.newImage("res/img/bone.png"),
|
||||||
B = love.graphics.newImage("res/img/bone.png"),
|
B = love.graphics.newImage("res/img/bone.png"),
|
||||||
M = love.graphics.newImage("res/img/bone.png"),
|
M = love.graphics.newImage("res/img/bone.png"),
|
||||||
|
F = love.graphics.newImage("res/img/bone.png"),
|
||||||
|
A = love.graphics.newImage("res/img/bone.png"),
|
||||||
X = love.graphics.newImage("res/img/bone.png"),
|
X = love.graphics.newImage("res/img/bone.png"),
|
||||||
} or {
|
} or {
|
||||||
R = love.graphics.newImage("res/img/bonew.png"),
|
R = love.graphics.newImage("res/img/bonew.png"),
|
||||||
@ -43,6 +45,8 @@ function Ruleset:new()
|
|||||||
C = love.graphics.newImage("res/img/bonew.png"),
|
C = love.graphics.newImage("res/img/bonew.png"),
|
||||||
B = love.graphics.newImage("res/img/bonew.png"),
|
B = love.graphics.newImage("res/img/bonew.png"),
|
||||||
M = love.graphics.newImage("res/img/bonew.png"),
|
M = love.graphics.newImage("res/img/bonew.png"),
|
||||||
|
F = love.graphics.newImage("res/img/bonew.png"),
|
||||||
|
A = love.graphics.newImage("res/img/bonew.png"),
|
||||||
X = love.graphics.newImage("res/img/bonew.png"),
|
X = love.graphics.newImage("res/img/bonew.png"),
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user