From cd9718ad9299786de5973656290e2ccb5fa10011 Mon Sep 17 00:00:00 2001
From: Maryam Shafiq <108004519+daisy21000@users.noreply.github.com>
Date: Thu, 4 Aug 2022 19:27:56 +0100
Subject: [PATCH 01/55] Add option of new neon theme
---
index.html | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/index.html b/index.html
index 5e955524..166431ec 100755
--- a/index.html
+++ b/index.html
@@ -60,6 +60,9 @@
case 6:
changeTheme('css/head-snake.css?' + Math.random());
break;
+ case 7:
+ changeTheme('css/neon-snake.css?' + Math.random());
+ break;
default:
changeTheme('css/main-snake.css?' + Math.random());
break;
@@ -94,6 +97,7 @@
+
From 9a9e0a224f6e5e2ea15901ba4ad10905c62a7481 Mon Sep 17 00:00:00 2001
From: Maryam Shafiq <108004519+daisy21000@users.noreply.github.com>
Date: Thu, 4 Aug 2022 19:28:57 +0100
Subject: [PATCH 02/55] Add new neon theme stylesheets
---
css/neon-snake.css | 139 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 139 insertions(+)
create mode 100644 css/neon-snake.css
diff --git a/css/neon-snake.css b/css/neon-snake.css
new file mode 100644
index 00000000..1be055f0
--- /dev/null
+++ b/css/neon-snake.css
@@ -0,0 +1,139 @@
+/*
+JavaScript Snake
+By Patrick Gillespie
+http://patorjk.com/games/snake
+*/
+body {
+ margin:0px;
+ padding:0px;
+ background-color: #000000;
+}
+
+.snake-toolbar {
+ color: #ffffff;
+}
+
+#game-area {
+ margin:10px;
+ padding:0px;
+}
+
+#mode-wrapper {
+ color: #ffffff;
+ font-family: Verdana, arial, helvetica, sans-serif;
+ font-size: 14px;
+
+}
+
+#game-area:focus { outline: none; }
+
+a.snake-link, a.snake-link:link, a.snake-link:visited {
+ color: #00FFE0;
+}
+
+a.snake-link:hover {
+ color: #0FFF00;
+}
+
+.snake-pause-screen {
+ font-family: Verdana, arial, helvetica, sans-serif;
+ font-size: 14px;
+ position:absolute;
+ width:300px;
+ height:80px;
+ text-align:center;
+ top:50%;
+ left:50%;
+ margin-top:-40px;
+ margin-left:-150px;
+ display:none;
+ background-color:#0FFF00;
+ color:#000000;
+}
+
+.snake-panel-component {
+ position: absolute;
+ font-family: Verdana, arial, helvetica, sans-serif;
+ font-size: 14px;
+ color: #ffffff;
+ text-align: center;
+ padding: 8px;
+ margin: 0px;
+}
+
+.snake-snakebody-block {
+ margin: 0px;
+ padding: 0px;
+ background-color: #FF0000;
+ position: absolute;
+ border: 0px solid #000080;
+ background-repeat: no-repeat;
+}
+
+.snake-snakebody-alive {
+ background-image: url('./images/neon-body-snakeblock.png'), url('./css/images/neon-body-snakeblock.png');
+}
+.snake-snakebody-dead {
+ background-image: url('./images/neon-dead-snakeblock.png'), url('./css/images/neon-dead-snakeblock.png');
+}
+
+.snake-food-block {
+ margin: 0px;
+ padding: 0px;
+ background-color: #FF0000;
+ border: 0px solid #000080;
+ position: absolute;
+}
+
+.snake-playing-field {
+ margin: 0px;
+ padding: 0px;
+ position: absolute;
+ background-color: #00FFD4;
+ border: 0px solid #0000A8;
+}
+
+.snake-game-container {
+ margin: 0px;
+ padding: 0px;
+ border-width: 0px;
+ border-style: none;
+ zoom: 1;
+ position: relative;
+}
+
+.snake-welcome-dialog {
+ padding: 8px;
+ margin: 0px;
+ background-color: #0FFF00;
+ color: #000000;
+ font-family: Verdana, arial, helvetica, sans-serif;
+ font-size: 14px;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ width: 300px;
+ /*height: 150px;*/
+ margin-top: -100px;
+ margin-left: -158px;
+ text-align: center;
+ display: block;
+}
+
+.snake-try-again-dialog, .snake-win-dialog {
+ padding: 8px;
+ margin: 0px;
+ background-color: #0FFF00;
+ color: #000000;
+ font-family: Verdana, arial, helvetica, sans-serif;
+ font-size: 14px;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ width: 300px;
+ height: 100px;
+ margin-top: -75px;
+ margin-left: -158px;
+ text-align: center;
+ display: none;
+}
From 8bd63208d1629c0b1775df2029b4f4b725b5e166 Mon Sep 17 00:00:00 2001
From: Maryam Shafiq <108004519+daisy21000@users.noreply.github.com>
Date: Thu, 4 Aug 2022 19:29:48 +0100
Subject: [PATCH 03/55] Add new neon theme snakeblocks
---
css/images/neon-body-snakeblock.png | Bin 0 -> 5213 bytes
css/images/neon-dead-snakeblock.png | Bin 0 -> 5198 bytes
2 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 css/images/neon-body-snakeblock.png
create mode 100644 css/images/neon-dead-snakeblock.png
diff --git a/css/images/neon-body-snakeblock.png b/css/images/neon-body-snakeblock.png
new file mode 100644
index 0000000000000000000000000000000000000000..1a7107d36117193e69c9a0e6b0b0d308ab1d4bff
GIT binary patch
literal 5213
zcmeHKc~n#95)Xoa5vUfbpg}{VAY%4}kO*Q;Sn?$72#P2-H#Z@W%_JBWE6Acy6xk}3
zihwLdrHDmE1YAG`MT%k-MFB
PElHrC8eF(&EFBZWdgYSu(eE3IxLFg8I<<(bi}o0x@%Dv|pgo2T;8$5?UE0gV0c<
zkdHt_b`AuJGoLRtnrO3msjqJ_r|AKiD{aDcWzWQ*VZJJ-?&*=|hU22NRW+rq>XCs?YcO#GNF&JukLS7HDk}
zRF}0?o^=pZ(sV{-`dKNCgWDf!#SJV(1^9*bC@OOcen+WV8cp@1E@n+8Ug`3$2^-~%
zb4)y3YnhGYef`Teoy@w|>6sw$oe=T|JFa>TKnJ`dmfSfLZWs~X+E}~5cq!)>-}x)n
zoNalB
z3aE6}GA-TTMMTD5i@uN{ieKFE20Y#AVevCRDdA>yBg>cpw)7@fU)!}k{zYJTc9Rfc
z0!Xw>xl8XG$LD|j8nxPL#vbJN%M5JhaYEDMSPh6PbM_fuxE`W-nCBiNN|#Z
zDdb|C4Tb&}F6|h*>^+z1A9yg?^728SVk-|K`(HNJcPGLgqpBWdD{gI&``;=%$gVnk
z^^&K4BM&zu9ZsU191KK6`hNsNJW96C^ybWNY;EcHg$(V0?WVAu=T2
zRQRZ{Xct3>$>#4T-MH#2*cV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$??Di;HAIfY_C0O4g4fkvPvobjC(+Yv*;5k9PVi2x-ZHh}klP{Na{6dy!>LNVm4
z1k`*I?I=X5ogINfCKD($%2d=E#I=xI0r#RBl}NymC>nEhVHj{aFtvcXQ(*wjI-CuI
zDTe^1RPHC0iX1U&2(;Q#)8J@_sj|2U6|hE>y6306-WS?D^)$5!L_&=Sjn*_S0|2L-
zD1a>xPvZ!-n-YPcfJ6YnJAAsO-mMG&rd%|83IsuX3Kk%7K`ezpCt>YrkR6r_5~wu3
zogEjVaz8~^Ncr#>lSAJL;7s9c;1<$kgI+pKrp>4Ns!&MH6an7f1R|C|^CMCjWD0{o
z#^9%u#jE%9yKEis|HFraM&Y9&0NYKi!NUcfRrvSAYML)Kh5z7hx(@%K2N?Q`lh5M!
z3teC6`YZ-MOZiK8eWB~K82BvZFWvQjqYL@ra|e>Z|A18R$4rIc*RJq~ke-swan^gR
zrDufE{wXM`6kejSS>O5DdxE^N$w?>eZ?ufFOBck|{^^v?o`qPTQ+jBy!CTu#uSnO&
m$i=W2Ww1?KFD9k+90K8%Iomu$i4egM2)45at73IX{C@#am;HqR
literal 0
HcmV?d00001
diff --git a/css/images/neon-dead-snakeblock.png b/css/images/neon-dead-snakeblock.png
new file mode 100644
index 0000000000000000000000000000000000000000..55da41ab4a51d49002cbc6f44f3a182b0eceb161
GIT binary patch
literal 5198
zcmeHKc~n#95)ZP75l{DL)db%>1D2Y_e6NEts#PYVE(ikpv
zo<>O?K1FE1nWSB|+!FWsEJu^?esnDN>_q-X|M}eToNThW6*ff~T3efY`Dj9NMVUdF
z5;dy%_}SCKXXx*`vy3(-A~#2#+c(rryRTS^y4m7ZS#5#nl9Y1Y_7m^=Sq=Y)So3VB
zt}AeQp$De;`ib)ceKxlOGx?9=ZvEO5rlV#4n8w>^@Ji>^)nZWEZ8?8~*Y#a(yBjbe
zsiSExj<$&p&R#Ox&gW!%Qxqr7f5piYomWbO`|5Ah&tp@UZ)qGY-P--QH0xODUCTJY
zmS0+U#yw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-ejduMeKpuDK8c-@z1V_!RSAD7p+{Czv28+nQmiG#(CDjz_oBE
z^Vhj)_XvPuNdKOpTmf9zl&p}?8E$(hzSgBZNcqp=7Yokf9_DTuGwtkBG{!kq=ZKo^
zS=Hw0{YJuxUt?KWE~$x{2JD5ykGBsUm0yT^JmJjr?+-P46(p=!%Eu9CG#U<1
z#1V-YSOX)A63Kx`j7YXj1u==if@GjnAdw5iB9saf;E2QJ3^W>+qdvqZl(5+!;YG43
z7GOSbk$?n8z~XU2A#S>bOzs!~gG>eVw-z#A_`QPjhGgP!DF``6KqC3F=@4A-qrD_t
z8m3N%3*w+KNC>OSV6TMFTsph5JwIBgDBuf(615df_Gg-M0q+x8pT(w3>T!)Fk~Ap0RxZ;HW(h!mP~|f
zIYa=WOoQ-{3gE5;!lp;1g5ttZHXI58BoL_>0M8@BP&5jLL!ojpcp3>LJDIQ@H1R|cAh#eZ7y3u@%7
zrW69?VyUlK9L7MaAW$kxb%UeqCd=X?kii;Js-BRzC
zL{SO~@YK3V-0JfW4gNF+|t8gEO)f8VU3je{+R2}|74>0ssCtt+x
zSGvB^^+gPPk@DB>`byUqG4MsoU%Tu7Mi=taaR(B?|9}+mVWv#~8)x_+G*j-%cAVL(
zG1CC8`Ex*2F}$?gmG!-^tp~^*os;OR<>r|k5_EHQb8Sg{W`dWd)yx7NZv&m`cs)JD
XV(l3gF?AuDssoj)qdTi?O_1`xXa4u?
literal 0
HcmV?d00001
From 12b320ed373ae18db238d02fc47b8e9a35d4c83f Mon Sep 17 00:00:00 2001
From: Maryam Shafiq <108004519+daisy21000@users.noreply.github.com>
Date: Thu, 4 Aug 2022 20:30:27 +0100
Subject: [PATCH 04/55] Delete neon snake-alive body for changes
---
css/images/neon-body-snakeblock.png | Bin 5213 -> 0 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
delete mode 100644 css/images/neon-body-snakeblock.png
diff --git a/css/images/neon-body-snakeblock.png b/css/images/neon-body-snakeblock.png
deleted file mode 100644
index 1a7107d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rp>4Ns!&MH6an7f1R|C|^CMCjWD0{o
z#^9%u#jE%9yKEis|HFraM&Y9&0NYKi!NUcfRrvSAYML)Kh5z7hx(@%K2N?Q`lh5M!
z3teC6`YZ-MOZiK8eWB~K82BvZFWvQjqYL@ra|e>Z|A18R$4rIc*RJq~ke-swan^gR
zrDufE{wXM`6kejSS>O5DdxE^N$w?>eZ?ufFOBck|{^^v?o`qPTQ+jBy!CTu#uSnO&
m$i=W2Ww1?KFD9k+90K8%Iomu$i4egM2)45at73IX{C@#am;HqR
From b1fa26bcdaa9fe5c6ec4d3d7fc081429608bbfb0 Mon Sep 17 00:00:00 2001
From: Maryam Shafiq <108004519+daisy21000@users.noreply.github.com>
Date: Thu, 4 Aug 2022 20:31:20 +0100
Subject: [PATCH 05/55] Add new edited neon snake-alive body
---
css/images/neon-body-snakeblock.png | Bin 0 -> 5200 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 css/images/neon-body-snakeblock.png
diff --git a/css/images/neon-body-snakeblock.png b/css/images/neon-body-snakeblock.png
new file mode 100644
index 0000000000000000000000000000000000000000..d66f77173bc74d9377bc9adda5259ff59cd8b421
GIT binary patch
literal 5200
zcmeHKc~n#95)YeV6sm2m_WI(;NOZR$uzl;P2f#%?uC-twbS%;mKk!P*RzMFARqeh~+Imr8~IQ
zdKxEr_!OZ1rjwHGctxDKOlQ-jKRTCswj+O||6DclO%B<@3Y)45tEtJoax5XGti-TH
zg&Ng){In8^8E6h`MEsBZ`ClXDWLaN)z^n7_mLfqZqW%UIa$8}v&^?dUfL*ozQ{){=Z
zWou}w2eN6^>y+nPcWECA%JY(U41#T<{fHXD!^V&|HW9(EGDp_0Nio&ZxqtCW#2TO1
z+nUURpEmfexRR+ll^DAy(&>n#Q9Gf0)nJZO`4bvv@iuaE=$mPFcDh%QS=F77Ivo1t
zW5cObr+O#Xm$JP@%A8ENEHk8T>*NT8;brxu^^=X^LIgrjFWNUi;SDI?7YU_^l0qmb
zQpiUjBHQ}|L>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WY5@+lG%RF2p^aaAgGahZ(sD5)l^QNw^R;QY3}PCjw#b6e$J3Fi3&oLIR=K0X-?PxofJOhLd;4(JetLQ2Qslu9L5Ny18G0vv%xqv7yG
z9Fd5DH8Aohu>y$1h~-Pv5R({8NDj(`QiV_=MyW9Yt|UU?fJVb|)cg2EQa1YoyjVWP
z0?Y?45|H8uSUgT7!hLEXS2%BhL8b!wTMM}_{9eI%Lvl%k41}DwKw`y`Pa$~V2YYFR
zEL@Wg55z&?kO)?l!(IuWxpZZ*JwI5eDG&%nQjHZ%_Gg+3A^#&;pT(w@XwvyK5ZL?!
z?q}NXbJr-tT5L9*DFGwY;jx$wXtjSjPXY>gbj>Z*mTODp5&0Mb70<KYVaT>T0tO%xY%zSI9hnH(
zaftv#`2@m4CWN~Z2>&!HH53nqvgJ|;Ac0850C+wThN4k0Tnd$k!P7_}8Be9!(a4Yn
ziU-nNBr*{Ims2PL1Q1Rt7H9-&!s*|8vK-JvEdJw)XE>nX!v^pk5Q=#crTnAFS15vf
z6o8sff-RXqv9-mMNhCa(N}h~bgSZxw$>Cm9qZ05~B3WauE({$`2c{NKcPb2^S%P*|`hB+cxc}k9UZe2I5P--!TRR}LxvzXue+IfKE6S2I!kdgyR_9uDwZ>cS+Y7<^
Date: Mon, 18 Sep 2023 20:01:30 -0400
Subject: [PATCH 06/55] Update README.md
---
README.md | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/README.md b/README.md
index 7942c5ff..e2df65d7 100755
--- a/README.md
+++ b/README.md
@@ -26,3 +26,16 @@ The index.html file should give an idea of how to use this code. However, below
});
The comments within the source code are formatted a little strange because at the time I was playing around with YUI Doc which generates documentation from code. Kind of sucks that there's so much churn in the JavaScript world. However, I'm glad the rest of the code doesn't use any external libraries, as this game still works the same after over a decade.
+
+## Contributors
+
+Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/emoji-key))
+
+
+
+
+
+
+
+
+
From 59caa54317dcd8aa5bf3324fae3a6d4bd8a8d04f Mon Sep 17 00:00:00 2001
From: patorjk
Date: Mon, 18 Sep 2023 20:02:18 -0400
Subject: [PATCH 07/55] Create .all-contributorsrc
---
.all-contributorsrc | 4 ++++
1 file changed, 4 insertions(+)
create mode 100644 .all-contributorsrc
diff --git a/.all-contributorsrc b/.all-contributorsrc
new file mode 100644
index 00000000..d6c56871
--- /dev/null
+++ b/.all-contributorsrc
@@ -0,0 +1,4 @@
+{
+ "projectName": "",
+ "projectOwner": ""
+}
From f6c25767a05ef453fd0ed15fe76d8429350dd375 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 00:07:59 +0000
Subject: [PATCH 08/55] docs: update README.md
---
README.md | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/README.md b/README.md
index e2df65d7..b62fde92 100755
--- a/README.md
+++ b/README.md
@@ -34,6 +34,13 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
+
From e2251a840459c7edefc0e3250a2e02418aef6e61 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 00:08:00 +0000
Subject: [PATCH 09/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index d6c56871..fa768f9f 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -1,4 +1,24 @@
{
- "projectName": "",
- "projectOwner": ""
+ "projectName": "JavaScript-Snake",
+ "projectOwner": "patorjk",
+ "files": [
+ "README.md"
+ ],
+ "commitType": "docs",
+ "commitConvention": "angular",
+ "contributorsPerLine": 7,
+ "contributors": [
+ {
+ "login": "patorjk",
+ "name": "patorjk",
+ "avatar_url": "https://avatars.githubusercontent.com/u/521224?v=4",
+ "profile": "http://patorjk.com/",
+ "contributions": [
+ "code",
+ "doc",
+ "design",
+ "example"
+ ]
+ }
+ ]
}
From 0167015c8b2e613862c771905805aefe701e23f4 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 00:08:04 +0000
Subject: [PATCH 10/55] docs: update README.md
---
README.md | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/README.md b/README.md
index e2df65d7..5dbe39b5 100755
--- a/README.md
+++ b/README.md
@@ -34,6 +34,13 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
+
From 6139163a735316307f049a34b0cb8818ef9b3038 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 00:08:38 +0000
Subject: [PATCH 11/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index d6c56871..0234577b 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -1,4 +1,24 @@
{
- "projectName": "",
- "projectOwner": ""
+ "projectName": "JavaScript-Snake",
+ "projectOwner": "patorjk",
+ "files": [
+ "README.md"
+ ],
+ "commitType": "docs",
+ "commitConvention": "angular",
+ "contributorsPerLine": 7,
+ "contributors": [
+ {
+ "login": "ultra17",
+ "name": "ultra17",
+ "avatar_url": "https://avatars.githubusercontent.com/u/27869698?v=4",
+ "profile": "https://github.com/ultra17",
+ "contributions": [
+ "code",
+ "doc",
+ "design",
+ "bug"
+ ]
+ }
+ ]
}
From 8a8e8388bdc486a69d89fd8a19ec402df3c8fe72 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 00:17:42 +0000
Subject: [PATCH 12/55] docs: update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 642a207e..eef438e5 100755
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 patorjk 💻 📖 🎨 💡 |
-  ultra17 💻 📖 🎨 🐛 |
+  Rb64 💻 🐛 |
From 1d0d0553f72f62d67f00eff379da9a67f020f8ee Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:16:36 +0000
Subject: [PATCH 13/55] docs: update README.md
---
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index eef438e5..21daa05e 100755
--- a/README.md
+++ b/README.md
@@ -37,7 +37,8 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
-  patorjk 💻 📖 🎨 💡 |
+  patorjk 💻 📖 🎨 🐛 💡 |
+  ultra17 💻 📖 🎨 🐛 |
 Rb64 💻 🐛 |
From 13723d4e1d50748e28f3f5fe8b77c00950ee1ddf Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:16:37 +0000
Subject: [PATCH 14/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index 063ca88b..e1f55e83 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -32,6 +32,16 @@
"design",
"bug"
]
+ },
+ {
+ "login": "Rb64",
+ "name": "Rb64",
+ "avatar_url": "https://avatars.githubusercontent.com/u/91498309?v=4",
+ "profile": "https://github.com/Rb64",
+ "contributions": [
+ "code",
+ "bug"
+ ]
}
]
}
From 9aee661527c5149ff0b53422744bb4c1a962953a Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:18:11 +0000
Subject: [PATCH 15/55] docs: update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 21daa05e..f75c5102 100755
--- a/README.md
+++ b/README.md
@@ -40,6 +40,7 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 patorjk 💻 📖 🎨 🐛 💡 |
 ultra17 💻 📖 🎨 🐛 |
 Rb64 💻 🐛 |
+  Wyatt Nulton 💻 🐛 |
From 2ea5c6296c16b23a7268b75cde3a18a200e79a06 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:18:12 +0000
Subject: [PATCH 16/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index e1f55e83..09f1d649 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -42,6 +42,16 @@
"code",
"bug"
]
+ },
+ {
+ "login": "legoman8304",
+ "name": "Wyatt Nulton",
+ "avatar_url": "https://avatars.githubusercontent.com/u/43346988?v=4",
+ "profile": "https://github.com/legoman8304",
+ "contributions": [
+ "code",
+ "bug"
+ ]
}
]
}
From a00780a2a92cadd9454cd44f83249b1e0de1af60 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:19:43 +0000
Subject: [PATCH 17/55] docs: update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index f75c5102..d2b08713 100755
--- a/README.md
+++ b/README.md
@@ -41,6 +41,7 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 ultra17 💻 📖 🎨 🐛 |
 Rb64 💻 🐛 |
 Wyatt Nulton 💻 🐛 |
+  Ashish Bhoir 📖 |
From 429405857f02fe0d28535e8301a4727c7c98a1b4 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:19:44 +0000
Subject: [PATCH 18/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index 09f1d649..80193ed4 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -52,6 +52,15 @@
"code",
"bug"
]
+ },
+ {
+ "login": "ashishsiot",
+ "name": "Ashish Bhoir",
+ "avatar_url": "https://avatars.githubusercontent.com/u/63919950?v=4",
+ "profile": "https://github.com/ashishsiot",
+ "contributions": [
+ "doc"
+ ]
}
]
}
From cc430833e6fbbd996dd34bde2eac11f064ed2ad4 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:20:49 +0000
Subject: [PATCH 19/55] docs: update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index d2b08713..6bd14bd2 100755
--- a/README.md
+++ b/README.md
@@ -42,6 +42,7 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 Rb64 💻 🐛 |
 Wyatt Nulton 💻 🐛 |
 Ashish Bhoir 📖 |
+  Dan G 💻 🐛 |
From 34d720dc2c983d06d2947e18587b576d64b6056f Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:20:50 +0000
Subject: [PATCH 20/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index 80193ed4..248d4f8b 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -61,6 +61,16 @@
"contributions": [
"doc"
]
+ },
+ {
+ "login": "dginovker",
+ "name": "Dan G",
+ "avatar_url": "https://avatars.githubusercontent.com/u/32943174?v=4",
+ "profile": "http://dginovker.github.io",
+ "contributions": [
+ "code",
+ "bug"
+ ]
}
]
}
From 7a8b9431ef8966abe8d24e732320ae2b2bbd7ddb Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:21:47 +0000
Subject: [PATCH 21/55] docs: update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 6bd14bd2..00fe66e7 100755
--- a/README.md
+++ b/README.md
@@ -43,6 +43,7 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 Wyatt Nulton 💻 🐛 |
 Ashish Bhoir 📖 |
 Dan G 💻 🐛 |
+  Megas4ever 💻 🎨 |
From cb7085d22565f323405b3a9557014ec0c89139c6 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:21:48 +0000
Subject: [PATCH 22/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index 248d4f8b..f0dc5b57 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -71,6 +71,16 @@
"code",
"bug"
]
+ },
+ {
+ "login": "Megas4ever",
+ "name": "Megas4ever",
+ "avatar_url": "https://avatars.githubusercontent.com/u/28103886?v=4",
+ "profile": "https://github.com/Megas4ever",
+ "contributions": [
+ "code",
+ "design"
+ ]
}
]
}
From b436b28eeaf60e7e199ea3e2da379f2b7c18714d Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:22:35 +0000
Subject: [PATCH 23/55] docs: update README.md
---
README.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/README.md b/README.md
index 00fe66e7..b2fc1a9f 100755
--- a/README.md
+++ b/README.md
@@ -45,6 +45,9 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 Dan G 💻 🐛 |
 Megas4ever 💻 🎨 |
+
+  Bugs Bunny 💻 🐛 |
+
From 19b41a7851cccf58e5350701f77c06c3115e6efe Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:22:36 +0000
Subject: [PATCH 24/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index f0dc5b57..efa4d624 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -81,6 +81,16 @@
"code",
"design"
]
+ },
+ {
+ "login": "mamamia5x",
+ "name": "Bugs Bunny",
+ "avatar_url": "https://avatars.githubusercontent.com/u/57536929?v=4",
+ "profile": "https://github.com/mamamia5x",
+ "contributions": [
+ "code",
+ "bug"
+ ]
}
]
}
From 1c6c0b3c99429c9fbfb181664e2dca4ce4de71b4 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:23:15 +0000
Subject: [PATCH 25/55] docs: update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index b2fc1a9f..9513509b 100755
--- a/README.md
+++ b/README.md
@@ -47,6 +47,7 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 Bugs Bunny 💻 🐛 |
+  James Cote 💻 🐛 📖 |
From a4ddbf179706a9648eccf6e5e21bd42f2e4ae1ad Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:23:16 +0000
Subject: [PATCH 26/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index efa4d624..6cc579c1 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -91,6 +91,17 @@
"code",
"bug"
]
+ },
+ {
+ "login": "Coteh",
+ "name": "James Cote",
+ "avatar_url": "https://avatars.githubusercontent.com/u/3276350?v=4",
+ "profile": "https://www.jamescote.ca",
+ "contributions": [
+ "code",
+ "bug",
+ "doc"
+ ]
}
]
}
From 99b4cda6525d9696f8aa337f3ec6030d5e3255eb Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:24:06 +0000
Subject: [PATCH 27/55] docs: update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 9513509b..946e9f90 100755
--- a/README.md
+++ b/README.md
@@ -48,6 +48,7 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 Bugs Bunny 💻 🐛 |
 James Cote 💻 🐛 📖 |
+  Arun Yokesh 💻 🎨 |
From 31942ef017e733b3edc41adeb2b0263d29b9d373 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:24:07 +0000
Subject: [PATCH 28/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index 6cc579c1..34575b56 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -102,6 +102,16 @@
"bug",
"doc"
]
+ },
+ {
+ "login": "yokesharun",
+ "name": "Arun Yokesh",
+ "avatar_url": "https://avatars.githubusercontent.com/u/12830078?v=4",
+ "profile": "http://yokesharun.github.io/",
+ "contributions": [
+ "code",
+ "design"
+ ]
}
]
}
From ea91bd281bc5f02344581d930d36bdbc0a5a42ba Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:24:43 +0000
Subject: [PATCH 29/55] docs: update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 946e9f90..947bfc44 100755
--- a/README.md
+++ b/README.md
@@ -49,6 +49,7 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 Bugs Bunny 💻 🐛 |
 James Cote 💻 🐛 📖 |
 Arun Yokesh 💻 🎨 |
+  Greg French 💻 |
From 76069473a70a936a307d1720c3390b96cb2e9e94 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:24:44 +0000
Subject: [PATCH 30/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index 34575b56..f0a6f388 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -112,6 +112,15 @@
"code",
"design"
]
+ },
+ {
+ "login": "GregFrench",
+ "name": "Greg French",
+ "avatar_url": "https://avatars.githubusercontent.com/u/17938510?v=4",
+ "profile": "https://github.com/GregFrench",
+ "contributions": [
+ "code"
+ ]
}
]
}
From 621530900b08f3f42b211beec61d2508b8a2d3b9 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:25:25 +0000
Subject: [PATCH 31/55] docs: update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 947bfc44..7cfb95e3 100755
--- a/README.md
+++ b/README.md
@@ -50,6 +50,7 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 James Cote 💻 🐛 📖 |
 Arun Yokesh 💻 🎨 |
 Greg French 💻 |
+  KT360 💻 🎨 |
From 5651abbca54c99b1ed297653a8d8cdc1ef52406c Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:25:26 +0000
Subject: [PATCH 32/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index f0a6f388..1894c2f2 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -121,6 +121,16 @@
"contributions": [
"code"
]
+ },
+ {
+ "login": "KT360",
+ "name": "KT360",
+ "avatar_url": "https://avatars.githubusercontent.com/u/31077743?v=4",
+ "profile": "https://github.com/KT360",
+ "contributions": [
+ "code",
+ "design"
+ ]
}
]
}
From 07d6c685794c6507e137c35977ae7a5b08e60b7c Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:26:09 +0000
Subject: [PATCH 33/55] docs: update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 7cfb95e3..d6e1c56a 100755
--- a/README.md
+++ b/README.md
@@ -51,6 +51,7 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 Arun Yokesh 💻 🎨 |
 Greg French 💻 |
 KT360 💻 🎨 |
+  Thusal Ranawaka 💻 🎨 |
From c5245ec69a6e6ffefaf63ca31aa2e035f6693029 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:26:10 +0000
Subject: [PATCH 34/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index 1894c2f2..2ba3e062 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -131,6 +131,16 @@
"code",
"design"
]
+ },
+ {
+ "login": "Thusal06",
+ "name": "Thusal Ranawaka",
+ "avatar_url": "https://avatars.githubusercontent.com/u/66709891?v=4",
+ "profile": "https://thusal06.github.io/",
+ "contributions": [
+ "code",
+ "design"
+ ]
}
]
}
From ab4dcf3ee33bee3e5b80ff116ad48be88c10f769 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:26:52 +0000
Subject: [PATCH 35/55] docs: update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index d6e1c56a..f87b3ade 100755
--- a/README.md
+++ b/README.md
@@ -52,6 +52,7 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 Greg French 💻 |
 KT360 💻 🎨 |
 Thusal Ranawaka 💻 🎨 |
+  Akhil Manohar 💻 |
From 18f5ef31969cf5656fa6df12d2fe21832f784172 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:26:53 +0000
Subject: [PATCH 36/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index 2ba3e062..94e1b2e4 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -141,6 +141,15 @@
"code",
"design"
]
+ },
+ {
+ "login": "akhill2606",
+ "name": "Akhil Manohar",
+ "avatar_url": "https://avatars.githubusercontent.com/u/56164681?v=4",
+ "profile": "https://github.com/akhill2606",
+ "contributions": [
+ "code"
+ ]
}
]
}
From eee96d3f047e14cb4585e6151858d9fb88186e86 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:27:16 +0000
Subject: [PATCH 37/55] docs: update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index d6e1c56a..21adcaf6 100755
--- a/README.md
+++ b/README.md
@@ -52,6 +52,7 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 Greg French 💻 |
 KT360 💻 🎨 |
 Thusal Ranawaka 💻 🎨 |
+  C. S. 💻 🎨 |
From badb9b8faf3cd4b3773f91d53eb4809dc96b5166 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:27:17 +0000
Subject: [PATCH 38/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index 2ba3e062..c98f0441 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -141,6 +141,16 @@
"code",
"design"
]
+ },
+ {
+ "login": "Furtano",
+ "name": "C. S.",
+ "avatar_url": "https://avatars.githubusercontent.com/u/4115133?v=4",
+ "profile": "https://github.com/Furtano",
+ "contributions": [
+ "code",
+ "design"
+ ]
}
]
}
From af972f0b596647832d0b39e9f5871946c6ca45b7 Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:27:50 +0000
Subject: [PATCH 39/55] docs: update README.md
---
README.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/README.md b/README.md
index 21adcaf6..797de829 100755
--- a/README.md
+++ b/README.md
@@ -54,6 +54,9 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 Thusal Ranawaka 💻 🎨 |
 C. S. 💻 🎨 |
+
+  Thunderforge 📖 |
+
From c6b75c5e9c42ef80b126d653a3f875bf68b1188c Mon Sep 17 00:00:00 2001
From: "allcontributors[bot]"
<46447321+allcontributors[bot]@users.noreply.github.com>
Date: Tue, 19 Sep 2023 03:27:51 +0000
Subject: [PATCH 40/55] docs: update .all-contributorsrc
---
.all-contributorsrc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index c98f0441..e31ca5bf 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -151,6 +151,15 @@
"code",
"design"
]
+ },
+ {
+ "login": "Thunderforge",
+ "name": "Thunderforge",
+ "avatar_url": "https://avatars.githubusercontent.com/u/6200170?v=4",
+ "profile": "https://github.com/Thunderforge",
+ "contributions": [
+ "doc"
+ ]
}
]
}
From 95587abd03efb50622916e739bc80725bb6753d2 Mon Sep 17 00:00:00 2001
From: patorjk
Date: Tue, 19 Sep 2023 00:06:18 -0400
Subject: [PATCH 41/55] Update README.md
---
README.md | 3 ---
1 file changed, 3 deletions(-)
diff --git a/README.md b/README.md
index 797de829..21adcaf6 100755
--- a/README.md
+++ b/README.md
@@ -54,9 +54,6 @@ Thanks goes to these people: ([emoji key](https://allcontributors.org/docs/en/em
 Thusal Ranawaka 💻 🎨 |
 C. S. 💻 🎨 |
-
-  Thunderforge 📖 |
-
From acee3b89cc5ff2f75ec6b4ae9321ceb2102ca1eb Mon Sep 17 00:00:00 2001
From: patorjk
Date: Tue, 19 Sep 2023 00:06:43 -0400
Subject: [PATCH 42/55] Update .all-contributorsrc
---
.all-contributorsrc | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/.all-contributorsrc b/.all-contributorsrc
index e31ca5bf..c98f0441 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -151,15 +151,6 @@
"code",
"design"
]
- },
- {
- "login": "Thunderforge",
- "name": "Thunderforge",
- "avatar_url": "https://avatars.githubusercontent.com/u/6200170?v=4",
- "profile": "https://github.com/Thunderforge",
- "contributions": [
- "doc"
- ]
}
]
}
From 489deafdcec5f2d93f589dc215fd6af09376955e Mon Sep 17 00:00:00 2001
From: LucassSantoss
Date: Thu, 18 Jan 2024 13:51:13 -0300
Subject: [PATCH 43/55] new style added
---
css/black-snake.css | 136 ++++++++++++++++++++++++++++++++++++++++++++
index.html | 6 +-
2 files changed, 141 insertions(+), 1 deletion(-)
create mode 100644 css/black-snake.css
diff --git a/css/black-snake.css b/css/black-snake.css
new file mode 100644
index 00000000..0c460b7c
--- /dev/null
+++ b/css/black-snake.css
@@ -0,0 +1,136 @@
+/*
+JavaScript Snake
+By Patrick Gillespie
+http://patorjk.com/games/snake
+*/
+body {
+ margin:0px;
+ padding:0px;
+ background-color: black;
+ color: white;
+}
+
+#game-area {
+ margin:10px;
+ padding:0px;
+}
+
+#mode-wrapper {
+ color: #ffffff;
+ font-family: Verdana, arial, helvetica, sans-serif;
+ font-size: 14px;
+
+}
+
+#game-area:focus { outline: none; }
+
+a.snake-link, a.snake-link:link, a.snake-link:visited {
+ color: #FCFC54;
+}
+
+a.snake-link:hover {
+ color: #FfFf54;
+}
+
+.snake-pause-screen {
+ font-family: Verdana, arial, helvetica, sans-serif;
+ font-size: 14px;
+ position:absolute;
+ width:300px;
+ height:80px;
+ text-align:center;
+ top:50%;
+ left:50%;
+ margin-top:-40px;
+ margin-left:-150px;
+ display:none;
+ background-color:black;
+ color:white;
+}
+
+.snake-panel-component {
+ position: absolute;
+ font-family: Verdana, arial, helvetica, sans-serif;
+ font-size: 14px;
+ color: #ffffff;
+ text-align: center;
+ padding: 8px;
+ margin: 0px;
+}
+
+.snake-snakebody-block {
+ margin: 0px;
+ padding: 0px;
+ background-color: #FF0000;
+ position: absolute;
+ border: 0px solid #000080;
+ background-repeat: no-repeat;
+}
+
+.snake-snakebody-alive {
+ background-image: url('./css/images/snakeblock.png'), url('./images/snakeblock.png');
+}
+.snake-snakebody-dead {
+ background-image: url('./css/images/deadblock.png'), url('./images/deadblock.png');
+}
+
+.snake-food-block {
+ margin: 0px;
+ padding: 0px;
+ background-color: aqua;
+ border: 0px solid #000080;
+ position: absolute;
+}
+
+.snake-playing-field {
+ margin: 0px;
+ padding: 0px;
+ position: absolute;
+ background-color: purple;
+ border: 0px solid purple;
+}
+
+.snake-game-container {
+ margin: 0px;
+ padding: 0px;
+ border-width: 0px;
+ border-style: none;
+ zoom: 1;
+ position: relative;
+}
+
+.snake-welcome-dialog {
+ padding: 8px;
+ margin: 0px;
+ background-color: #000000;
+ color: #ffffff;
+ font-family: Verdana, arial, helvetica, sans-serif;
+ font-size: 14px;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ width: 300px;
+ /*height: 150px;*/
+ margin-top: -100px;
+ margin-left: -158px;
+ text-align: center;
+ display: block;
+}
+
+.snake-try-again-dialog, .snake-win-dialog {
+ padding: 8px;
+ margin: 0px;
+ background-color: #000000;
+ color: #ffffff;
+ font-family: Verdana, arial, helvetica, sans-serif;
+ font-size: 14px;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ width: 300px;
+ height: 100px;
+ margin-top: -75px;
+ margin-left: -158px;
+ text-align: center;
+ display: none;
+}
diff --git a/index.html b/index.html
index 5e955524..77442c73 100755
--- a/index.html
+++ b/index.html
@@ -57,9 +57,12 @@
case 5:
changeTheme('css/Senura-snake.css?' + Math.random());
break;
- case 6:
+ case 6:
changeTheme('css/head-snake.css?' + Math.random());
break;
+ case 7:
+ changeTheme("css/black-snake.css?" + Math.random());
+ break;
default:
changeTheme('css/main-snake.css?' + Math.random());
break;
@@ -94,6 +97,7 @@
+
From 3de7b6ae0d44bceeea94a188f879a46fd31eee19 Mon Sep 17 00:00:00 2001
From: mmpalasc <114777311+mmpalasc@users.noreply.github.com>
Date: Mon, 19 Feb 2024 01:33:30 +0200
Subject: [PATCH 44/55] Pause and info
Added pause when window minimized or user changes tab.
Added game info button in welcome screen.
---
js/snake.js | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/js/snake.js b/js/snake.js
index 556637f7..91ccf984 100644
--- a/js/snake.js
+++ b/js/snake.js
@@ -669,6 +669,7 @@ SNAKE.Board = SNAKE.Board || (function() {
mySnake,
boardState = 1, // 0: in active; 1: awaiting game start; 2: playing game
myKeyListener,
+ myWindowListener,
isPaused = false,//note: both the board and the snake can be paused
// Board components
elmContainer, elmPlayingField, elmAboutPanel, elmLengthPanel, elmHighscorePanel, elmWelcome, elmTryAgain, elmWin, elmPauseScreen;
@@ -754,6 +755,13 @@ SNAKE.Board = SNAKE.Board || (function() {
welcomeTxt.innerHTML = "JavaScript Snake
Use the
arrow keys on your keyboard to play the game. " + fullScreenText + "
";
var welcomeStart = document.createElement("button");
welcomeStart.appendChild(document.createTextNode("Play Game"));
+
+ //Game info
+ var gameinfo = document.createElement("button");
+ gameinfo.appendChild(document.createTextNode("Info"));
+ var gameInfo = function() {
+ alert("Welcome to Snake! The goal of the game is to eat the food. Each time you eat food, you grow longer. You die if you run into the wall or yourself. Good luck!");
+ }
var loadGame = function() {
SNAKE.removeEventListener(window, "keyup", kbShortcut, false);
tmpElm.style.display = "none";
@@ -768,11 +776,14 @@ SNAKE.Board = SNAKE.Board || (function() {
loadGame();
}
};
+
SNAKE.addEventListener(window, "keyup", kbShortcut, false);
SNAKE.addEventListener(welcomeStart, "click", loadGame, false);
+ SNAKE.addEventListener(gameinfo, "click", gameInfo, false);
tmpElm.appendChild(welcomeTxt);
tmpElm.appendChild(welcomeStart);
+ tmpElm.appendChild(gameinfo);
return tmpElm;
}
@@ -849,6 +860,7 @@ SNAKE.Board = SNAKE.Board || (function() {
*/
me.resetBoard = function() {
SNAKE.removeEventListener(elmContainer, "keydown", myKeyListener, false);
+ SNAKE.removeEventListener(elmContainer, "visibilitychange", myWindowListener, false);
mySnake.reset();
elmLengthPanel.innerHTML = "Length: 1";
me.setupPlayingField();
@@ -1005,6 +1017,7 @@ SNAKE.Board = SNAKE.Board || (function() {
// This removes the listener added at the #listenerX line
SNAKE.removeEventListener(elmContainer, "keydown", myKeyListener, false);
+ SNAKE.removeEventListener(elmContainer, "visibilitychange", myWindowListener, false);
myKeyListener = function(evt) {
if (!evt) var evt = window.event;
@@ -1023,7 +1036,17 @@ SNAKE.Board = SNAKE.Board || (function() {
if (evt.preventDefault) {evt.preventDefault();}
return false;
};
+
+ //listener for pausing the game if user change tab or minimize the browser window
+ document.addEventListener("visibilitychange", () => {
+ if (document.visibilityState === 'hidden') {
+ if(me.getBoardState()!=0 && !me.getPaused())
+ me.setPaused(true);
+ }
+ });
+
SNAKE.addEventListener( elmContainer, "keydown", myKeyListener, false);
+ SNAKE.addEventListener( elmContainer, "visibilitychange", myWindowListener, false);
mySnake.rebirth();
mySnake.handleArrowKeys(keyNum);
@@ -1039,6 +1062,7 @@ SNAKE.Board = SNAKE.Board || (function() {
// Search for #listenerX to see where this is removed
SNAKE.addEventListener( elmContainer, "keydown", myKeyListener, false);
+ SNAKE.addEventListener( elmContainer, "visibilitychange", myWindowListener, false);
};
/**
From b735d5bc9e2daa647a1d8f28276aeb8bac48bc55 Mon Sep 17 00:00:00 2001
From: David Cote
Date: Fri, 20 Sep 2024 12:47:14 -0400
Subject: [PATCH 45/55] Fix issue #116: Refactor var to let and const
---
README.md | 2 +-
index.html | 16 ++---
js/init.js | 4 +-
js/snake.js | 202 ++++++++++++++++++++++++++++------------------------
4 files changed, 119 insertions(+), 105 deletions(-)
diff --git a/README.md b/README.md
index 1a7d7e9b..7f373fc1 100755
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ http://patorjk.com/games/snake
## How to use
The index.html file should give an idea of how to use this code. However, below you can see how to initialize it into any div within a webpage.
- var mySnakeBoard = new SNAKE.Board( {
+ const mySnakeBoard = new SNAKE.Board( {
boardContainer: "game-area",
fullScreen: false,
width: 580,
diff --git a/index.html b/index.html
index 5e955524..a0e6b1be 100755
--- a/index.html
+++ b/index.html
@@ -27,17 +27,17 @@
function getTheme () {
function changeTheme(themeUrl) {
- var elm = document.getElementById("style");
+ const elm = document.getElementById("style");
elm && elm.remove();
- var newCss = document.createElement("link");
+ const newCss = document.createElement("link");
newCss.id = "style";
newCss.rel = "stylesheet";
newCss.type = "text/css";
newCss.href = themeUrl;
document.head.appendChild(newCss);
}
- var index = document.getElementById("select").selectedIndex;
+ const index = document.getElementById("select").selectedIndex;
switch (index) {
case 0:
changeTheme('css/light-snake.css?' + Math.random());
@@ -70,14 +70,14 @@
}
if (navigator.onLine && window.location.hostname === 'patorjk.com') {
- var _gaq = _gaq || [];
+ const _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-3312460-1']);
_gaq.push(['_trackPageview']);
(function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ const ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ const s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
}
@@ -126,7 +126,7 @@ Select which mode you would like to play in.