From 7097ecca16fb7e7c9e1cc2fbeb5c884ae4783c41 Mon Sep 17 00:00:00 2001 From: Git Date: Fri, 25 Aug 2023 15:04:43 +0000 Subject: [PATCH] General update --- GameOfLife/index.html | 13 +- README.md | 0 afkscreen2/index.html | 0 afkscreen2/scripts/bg.js | 0 bam-backup/test-bam.html | 1609 +++++++++++++++++++++++++++++ hex/index.html | 2 +- hex/scripts/bg.js | 1 + hex/scripts/patterns/centerhex.js | 0 hex/scripts/perlin.js | 0 hex/styles/style.css | 0 s1clone/index.html | 2 +- s1clone/scripts/background.js | 2 +- s1clone/scripts/style.css | 71 ++ 13 files changed, 1695 insertions(+), 5 deletions(-) mode change 100644 => 100755 GameOfLife/index.html mode change 100644 => 100755 README.md mode change 100644 => 100755 afkscreen2/index.html mode change 100644 => 100755 afkscreen2/scripts/bg.js create mode 100644 bam-backup/test-bam.html mode change 100644 => 100755 hex/index.html mode change 100644 => 100755 hex/scripts/bg.js mode change 100644 => 100755 hex/scripts/patterns/centerhex.js mode change 100644 => 100755 hex/scripts/perlin.js mode change 100644 => 100755 hex/styles/style.css mode change 100644 => 100755 s1clone/index.html mode change 100644 => 100755 s1clone/scripts/background.js create mode 100755 s1clone/scripts/style.css 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 @@ Toothwitch's Root - + diff --git a/s1clone/scripts/background.js b/s1clone/scripts/background.js old mode 100644 new mode 100755 index 4cdb4d7..808cffb --- a/s1clone/scripts/background.js +++ b/s1clone/scripts/background.js @@ -142,7 +142,7 @@ } function star(c, x, y, r, p, m,o) { - ctx.fillStyle = "rgba(255, 255, 255, "+o+")"; + ctx.fillStyle = "rgba(0, 0, 0, "+o+")"; ctx.save(); ctx.beginPath(); ctx.translate(x, y); diff --git a/s1clone/scripts/style.css b/s1clone/scripts/style.css new file mode 100755 index 0000000..bf5528b --- /dev/null +++ b/s1clone/scripts/style.css @@ -0,0 +1,71 @@ +@font-face { font-family: SpookyMagic; src: url(../fonts/SpookyMagic.ttf); } +@font-face { font-family: AceRecords; src: url(../fonts/AceRecords.ttf); } +.headline{ + z-index=0; + width: 100%; + text-align: center; + font-family: AceRecords; + font-size: 5em; +} +.prod{ + width: 20px; + right: 0; + top: 0; + position: fixed; + cursor: default; +} + +.menu{ + text-align: center; + font-family: AceRecords; + text-decoration: none; + font-size: 3em; +} +.menu a{ + text-decoration: none; + color: #000; + border: solid #000 1px; + padding: 10px; + border-radius: 15px; + background-color: #fff; + margin-left: 1%; + margin-right: 1%; + } +.main{ + width:100%; + position: absolute; + top: 5%; + z-index=0; +} +.bgmaster{ + position: fixed; +} + +.content{ + width: 50%; + border: solid #550033 1px; + margin-top: 5%; + margin-left: auto; + margin-right: auto; + border-radius: 30px; + padding: 10px; + font-size: 2em; + font-family: Terminal, monospace; + background-color: #fff; +} +.content a{ + color: #444444; +} +input[type="password"]{ + font-size: 1em; + font-family: Terminal, monospace; + border-radius: 15px; + padding: 10px; + width: 80%; +} +input[type="password"]:focus { + outline: none; +} +body{ + width: 100%; +} \ No newline at end of file