changed fruit color
This commit is contained in:
@@ -18,7 +18,7 @@ const backendUrl = import.meta.env.MODE === "production"
|
|||||||
interface Cell {
|
interface Cell {
|
||||||
x: number
|
x: number
|
||||||
y: number
|
y: number
|
||||||
color: 'white' | 'yellow' | 'green'
|
color: 'white' | 'red' | 'green'
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Snake {
|
interface Snake {
|
||||||
@@ -52,7 +52,7 @@ function genGrid(length: number, height: number) {
|
|||||||
|
|
||||||
function spawnCoin() {
|
function spawnCoin() {
|
||||||
const cell = randomCell()
|
const cell = randomCell()
|
||||||
cell.color = 'yellow'
|
cell.color = 'red'
|
||||||
return cell
|
return cell
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user