mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-25 14:36:15 -04:00
Added a palette for bricks color
This commit is contained in:
parent
0622e63eb5
commit
8c4735f3f2
4 changed files with 27 additions and 24 deletions
|
@ -23,6 +23,7 @@ const randomPatterns=[
|
|||
]
|
||||
let attributed=0
|
||||
allLevels.forEach(l => {
|
||||
l.bricks=l.bricks.split('').map(c=>palette[c])
|
||||
if (!l.color && !l.svg) {
|
||||
l.svg = randomPatterns[attributed%randomPatterns.length]
|
||||
attributed++
|
||||
|
@ -87,7 +88,7 @@ function resetCombo(x, y) {
|
|||
type: "text",
|
||||
text: "-" + lost,
|
||||
time: levelTime,
|
||||
color: "red",
|
||||
color: "r",
|
||||
x: x,
|
||||
y: y,
|
||||
duration: 150,
|
||||
|
@ -110,7 +111,7 @@ function decreaseCombo(by, x, y) {
|
|||
type: "text",
|
||||
text: "-" + lost,
|
||||
time: levelTime,
|
||||
color: "red",
|
||||
color: "r",
|
||||
x: x,
|
||||
y: y,
|
||||
duration: 300,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue