diff --git a/README.md b/README.md
index f2181309..9aa58b1b 100755
--- a/README.md
+++ b/README.md
@@ -1,19 +1,17 @@
-JavaScript Snake
-By Patrick Gillespie
-License: MIT
-http://patorjk.com/games/snake
+This is a heavily modified version of Patrick Gillespie's Javascript Snake.
+It was made for a survey about gaming at the TU Darmstadt.
-This is a DOM-based game of Snake that I wrote in JavaScript a few years back.
-
-Other than the full screen mode demonstrated in the code, it can also be
-initialized in div tags within a page. Example:
-
- var mySnakeBoard = new SNAKE.Board( {
- boardContainer: "game-area",
- fullScreen: false,
- width: 580,
- height:400
- });
-
-The comments are formatted a little strange because at the time I was playing
-around with YUI Doc.
+Changes made:
+* It is now timed for 2 minutes
+ * You respawn after dying, your score is preserved
+* Mobile-ready
+ * Swipe-motions achieved with hammerjs
+ * Mobile version is set to a slower 120ms compared to keyboard version with 70ms
+* Deactivated pause function
+* Food gives iteratively more points
+ * 1st 10 points, 2nd 11 points, ...
+* A point cannot spawn at the edge of the field (less random, fairer)
+* No options, Text is now in German
+* Design changed to simpe colours
+ * Black & White backgrounds
+ * Snake is green, "Apple" is red
diff --git a/css/dark-snake.css b/css/dark-snake.css
deleted file mode 100644
index 38d7d67a..00000000
--- a/css/dark-snake.css
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
-JavaScript Snake
-By Patrick Gillespie
-http://patorjk.com/games/snake
-*/
-select {
- border: black;
- color: #3E2E44;
- background: black;
-}
-
-button {
- border: black;
- color: #3E2E44;
- background: black;
-}
-
-body {
- margin:0px;
- padding:0px;
-}
-
-#game-area {
- margin:0px;
- padding:0px;
-}
-
-#high-score {
- position: relative;
- left: 200px;
- bottom: 50px;
-}
-
-#game-area:focus { outline: none; }
-
-#mode-wrapper {
- font-family: Verdana, arial, helvetica, sans-serif;
- font-size: 14px;
- color: black;
-}
-
-a.snake-link, a.snake-link:link, a.snake-link:visited {
- color: black;
-}
-
-a.snake-link:hover {
- color: #3E2E44;
-}
-
-.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:#3E2E44;
- color:black;
-}
-
-.snake-panel-component {
- position: absolute;
- font-family: Verdana, arial, helvetica, sans-serif;
- font-size: 14px;
- color: black;
- text-align: center;
- background-color: #3E2E44;
- padding: 8px;
- margin: 0px;
-}
-
-.snake-snakebody-block {
- margin: 0px;
- padding: 0px;
- background-color: #3E2E44;
- position: absolute;
- border: 0px solid black;
- background-repeat: no-repeat;
-}
-
-.snake-snakebody-alive {
- background-image: url('./images/dark-snakeblock.png');
-}
-.snake-snakebody-dead {
- background-image: url('./images/dead-dark-snakeblock.png');
-}
-
-.snake-food-block {
- margin: 0px;
- padding: 0px;
- background-color: black;
- border: 2px solid #3E2E44;
- position: absolute;
-}
-
-.snake-playing-field {
- margin: 0px;
- padding: 0px;
- position: absolute;
- background-color: #312E44;
- border: 3px solid black;
-}
-
-.snake-game-container {
- margin: 0px;
- padding: 0px;
- border-width: 0px;
- border-style: none;
- zoom: 1;
- background-color: #3E2E44;
- position: relative;
-}
-
-.snake-welcome-dialog {
- padding: 8px;
- margin: 0px;
- background-color: black;
- color: #3E2E44;
- 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 {
- padding: 8px;
- margin: 0px;
- background-color: black;
- color: #312E44;
- 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/css/images/Thumbs.db b/css/images/Thumbs.db
deleted file mode 100755
index 5892f185..00000000
Binary files a/css/images/Thumbs.db and /dev/null differ
diff --git a/css/images/dark-snakeblock.png b/css/images/dark-snakeblock.png
deleted file mode 100644
index 66c4f1c2..00000000
Binary files a/css/images/dark-snakeblock.png and /dev/null differ
diff --git a/css/images/dead-dark-snakeblock.png b/css/images/dead-dark-snakeblock.png
deleted file mode 100644
index 63302e51..00000000
Binary files a/css/images/dead-dark-snakeblock.png and /dev/null differ
diff --git a/css/images/deadblock.png b/css/images/deadblock.png
index e3d07842..8dbb9bd6 100755
Binary files a/css/images/deadblock.png and b/css/images/deadblock.png differ
diff --git a/css/images/deadblock_border.png b/css/images/deadblock_border.png
deleted file mode 100644
index 94b5628e..00000000
Binary files a/css/images/deadblock_border.png and /dev/null differ
diff --git a/css/images/snakeblock.png b/css/images/snakeblock.png
index e25b646f..07a0b9db 100755
Binary files a/css/images/snakeblock.png and b/css/images/snakeblock.png differ
diff --git a/css/main-snake.css b/css/main-snake.css
index 03a485c7..d5a556ce 100755
--- a/css/main-snake.css
+++ b/css/main-snake.css
@@ -56,9 +56,9 @@ a.snake-link:hover {
position: absolute;
font-family: Verdana, arial, helvetica, sans-serif;
font-size: 14px;
- color: #ffffff;
+ color: black;
text-align: center;
- background-color: #FC5454;
+ background-color: #ffffff;
padding: 8px;
margin: 0px;
}
@@ -66,23 +66,23 @@ a.snake-link:hover {
.snake-snakebody-block {
margin: 0px;
padding: 0px;
- background-color: #FF0000;
+ background-color: #000000;
position: absolute;
border: 0px solid #000080;
background-repeat: no-repeat;
}
.snake-snakebody-alive {
- background-image: url('./images/snakeblock.png');
+ background-image: url('./images/snakeblock.png');
}
.snake-snakebody-dead {
- background-image: url('./images/deadblock.png');
+ background-image: url('./images/deadblock.png');
}
.snake-food-block {
margin: 0px;
padding: 0px;
- background-color: #FF0000;
+ background-color: rgb(255, 0, 0);
border: 0px solid #000080;
position: absolute;
}
@@ -91,8 +91,8 @@ a.snake-link:hover {
margin: 0px;
padding: 0px;
position: absolute;
- background-color: #0000A8;
- border: 0px solid #0000A8;
+ background-color: rgb(0, 0, 0);
+ border: 0px solid rgb(0, 0, 0);
}
.snake-game-container {
@@ -101,7 +101,7 @@ a.snake-link:hover {
border-width: 0px;
border-style: none;
zoom: 1;
- background-color: #FC5454;
+ background-color: #ffffff;
position: relative;
}
@@ -115,7 +115,7 @@ a.snake-link:hover {
position: absolute;
top: 50%;
left: 50%;
- width: 300px;
+ width: 280px;
/*height: 150px;*/
margin-top: -100px;
margin-left: -158px;
@@ -131,10 +131,10 @@ a.snake-link:hover {
font-family: Verdana, arial, helvetica, sans-serif;
font-size: 14px;
position: absolute;
- top: 50%;
+ top: 40%;
left: 50%;
- width: 300px;
- height: 100px;
+ width: 280px;
+ height: 170px;
margin-top: -75px;
margin-left: -158px;
text-align: center;
diff --git a/index.html b/index.html
index 59a5042c..9ec7ca0c 100755
--- a/index.html
+++ b/index.html
@@ -10,51 +10,29 @@
Source code is available here: https://github.com/patorjk/JavaScript-Snake
-->
+
+
-