Skip to content

Commit

Permalink
holy shit, i am ready to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenny committed Jun 26, 2017
1 parent f3f50d9 commit 5dc450c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions javascripts/landOfRodsAndScreens.js
Expand Up @@ -106,15 +106,16 @@ function compute(k, formula){
newyk[i] = Math.floor((newnk-1)/(q**i));
newxk[i] = (newyk[i] + targetImage) % q
}
/*
Y'[k][i] = ( floor((n'[k]-1)/(q**i) ) %q
X'[k][i] = (y`[k][i]+tgt)%q
Then update the tiles by looking up which x[k][i] they map to and picking the fragment of that x[k][i] picture they cover.
*/
x[k] = newxk;
//then, finally, get all screens who match k, and set their values according to x[k][i] or whatever.
}

function updateScreens(k){
for(var i = 0; i<screens.length; i++){
if(screens.k == k){
screens[i].state = x[k][screens[i].i];
}
}
}

function loadAllImages(){
Expand Down

0 comments on commit 5dc450c

Please sign in to comment.