diff --git a/GameOfLife/index.html b/GameOfLife/index.html old mode 100644 new mode 100755 index 506abc8..75b1586 --- a/GameOfLife/index.html +++ b/GameOfLife/index.html @@ -269,7 +269,13 @@ draw(); - + var looping = false; + setInterval(function(){ + if(looping){ + hue = hue+0.01; + hue = hue>1?0:hue; + } + },400); document.addEventListener ('keydown', function (event) { if (event.which == 38) { @@ -284,7 +290,10 @@ } else if(event.which == 39){ speed = Math.max(speed-0.01, 0.1 ); - } + } + if (event.which == 32){ + looping = looping?false:true; + } }); diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/afkscreen2/index.html b/afkscreen2/index.html old mode 100644 new mode 100755 diff --git a/afkscreen2/scripts/bg.js b/afkscreen2/scripts/bg.js old mode 100644 new mode 100755 diff --git a/bam-backup/test-bam.html b/bam-backup/test-bam.html new file mode 100644 index 0000000..0e7efdd --- /dev/null +++ b/bam-backup/test-bam.html @@ -0,0 +1,1609 @@ + + \ No newline at end of file diff --git a/hex/index.html b/hex/index.html old mode 100644 new mode 100755 index 905568c..8b2fea2 --- a/hex/index.html +++ b/hex/index.html @@ -4,7 +4,7 @@ - + diff --git a/hex/scripts/bg.js b/hex/scripts/bg.js old mode 100644 new mode 100755 index 1e73796..0e9fc07 --- a/hex/scripts/bg.js +++ b/hex/scripts/bg.js @@ -41,6 +41,7 @@ $(function() { //ctx.fillStyle = "rgba(21, 21, 21, 100)"; ctx.fillStyle = '#00f'; + ctx.fill(); //drawHexRect(ctx, 100, 10, 10); //var t = new Tile(100, 50, 50, ctx); //t.full(); diff --git a/hex/scripts/patterns/centerhex.js b/hex/scripts/patterns/centerhex.js old mode 100644 new mode 100755 diff --git a/hex/scripts/perlin.js b/hex/scripts/perlin.js old mode 100644 new mode 100755 diff --git a/hex/styles/style.css b/hex/styles/style.css old mode 100644 new mode 100755 diff --git a/s1clone/index.html b/s1clone/index.html old mode 100644 new mode 100755 index fbea20e..8e88099 --- a/s1clone/index.html +++ b/s1clone/index.html @@ -2,7 +2,7 @@