Last active
September 1, 2017 05:21
-
-
Save albertochiwas/6d3bc0f20b331645b12287d358657ef7 to your computer and use it in GitHub Desktop.
Ejercicio: Animar personaje para que salude 5 veces http://podcast.itch.edu.mx/live-editor/
This file contains 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
var av = new Avatar(2); | |
av.scale(0.75); | |
frameRate(35); | |
var draw = function() { | |
background(255, 255, 0); | |
av.setAngle(1, 60); | |
av.next(2); //av.rotate(2, 1); | |
println(av.getAngle(2)); | |
if (mouseIsPressed) { | |
av.setAngle(5,round(random(26,34))); | |
} | |
av.draw(mouseX,mouseY); | |
}; |
NuriaReyes
commented
Sep 1, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment