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