Skip to content

Instantly share code, notes, and snippets.

View profesoratecno's full-sized avatar

Ángela Bracho profesoratecno

View GitHub Profile
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
/*
* Catch the Apple (Caza la Manzana)
*
* Creacion de un videojuego con Processing. El objetivo de este ejercicio es
* llevar la programacion un poco mas lejos y crear un pequeño videojuego donde
* nuestro aguerrido heroe, el famoso cientifico Newton, intenta no perder la
* oportunidad de que la manzana le caiga en la cabeza.
*
* Paso 12:
* - incluye imagenes para la manzana, el fondo y Newton
void setup (){
size (600,600);
}
void draw () {
line (0,0, mouseX, mouseY);
}