changed fruit color

This commit is contained in:
2024-02-12 13:52:03 +01:00
parent b97207b1dc
commit 1ef9993d67

View File

@@ -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
}