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
int y1 = A0; | |
int x2 = A1; | |
int y2 = A2; | |
int x1 = A3; | |
int ledPin0 = 2; | |
int ledPin1 = 3; | |
int ledPin2 = 4; | |
int ledPin3 = 5; |
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 serial; | |
var speedx = 1; | |
var speedy = 1; | |
var x = 10; | |
var y = 0; | |
var gravity = 0.1; | |
var pos = 0; | |
var len = 40; | |
var score = 0; |
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
int y1 = A0; | |
int x2 = A1; | |
int y2 = A2; | |
int x1 = A3; | |
int ledPin0 = 2; | |
int ledPin1 = 3; | |
int ledPin2 = 4; | |
int ledPin3 = 5; |
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
function setup() { | |
createCanvas(800, 800); | |
background(0); | |
frameRate(2400); | |
} | |
var m = false; | |
function draw() { |
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
function setup() { | |
createCanvas(800,800); | |
background(0); | |
frameRate(1800); | |
} | |
var x,a,m,on=false,z,q=-200,o=10,b=20,s; | |
function draw() { | |
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
function setup() { | |
createCanvas(800,800); | |
background(0); | |
frameRate(1800); | |
} | |
var x,a,m,on=false,z,q=-200,o=10,b=20,s; | |
function draw() { | |
NewerOlder