This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void setup (){ | |
| size (600,600); | |
| } | |
| void draw () { | |
| line (0,0, mouseX, mouseY); | |
| } |