Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/comida.ino

Created Feb 15, 2020
Embed
What would you like to do?
// Calcula coordenadas aleatorias para colocar la comida
void randomizarComida() {
comidaX = random(0, ANCHURA_TABLERO);
comidaY = random(0, ALTURA_TABLERO);
}
// Coloca la comida en el escenrio
void acomodarComida() {
escenario[comidaY][comidaX] = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment