|
|
|
@ -4,9 +4,6 @@ var left, right, genLight, score
|
|
|
|
|
var el1 = [], el2 = [], scrVals = []
|
|
|
|
|
|
|
|
|
|
function preload() {
|
|
|
|
|
// left = loadSVG('../svgs/leftHand.svg')
|
|
|
|
|
// right = loadSVG('../svgs/rightHand.svg')
|
|
|
|
|
|
|
|
|
|
genLight = loadFont("fonts/Gen-Light.otf");
|
|
|
|
|
|
|
|
|
|
score = loadStrings('../score/score.txt')
|
|
|
|
@ -26,32 +23,27 @@ function setup() {
|
|
|
|
|
noLoop()
|
|
|
|
|
|
|
|
|
|
fill(220)
|
|
|
|
|
textSize(150)
|
|
|
|
|
textSize(30)
|
|
|
|
|
textAlign('right')
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function draw() {
|
|
|
|
|
background('#151515')
|
|
|
|
|
fill("#DDDDDD")
|
|
|
|
|
|
|
|
|
|
fill("#111111")
|
|
|
|
|
rect(0, 220, width, 280)
|
|
|
|
|
|
|
|
|
|
fill("#BBBBBB")
|
|
|
|
|
for (var i = 0; i < score.length; i++) {
|
|
|
|
|
var line = split(score[i].slice(0, -1), ' ')
|
|
|
|
|
text(line.join(" "), 90, 150 + (i*90), 710)
|
|
|
|
|
text(line.join(" "), 600, 280 + (i*20), 170)
|
|
|
|
|
scrVals.push(line)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stroke('#FFCC00')
|
|
|
|
|
fill('#FFCC00')
|
|
|
|
|
|
|
|
|
|
// left.attribute('fill', 'none')
|
|
|
|
|
// right.attribute('fill', 'none')
|
|
|
|
|
// left.attribute('stroke', '#FFCC00')
|
|
|
|
|
// right.attribute('stroke', '#FFCC00')
|
|
|
|
|
|
|
|
|
|
// image(right, 0, 0, 600, 600)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < el1.length; i++) {
|
|
|
|
|
var r = random(5)
|
|
|
|
|
var rVal = int(scrVals[int(random(scrVals.length))][int(random(7))])
|
|
|
|
|