removed html
This commit is contained in:
parent
20d7cbb83f
commit
d876180f82
@ -1,5 +0,0 @@
|
|||||||
<html>
|
|
||||||
<body>
|
|
||||||
<script src="./build/bundle.js" /></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -116,7 +116,7 @@ const moveSnake = (direction) => {
|
|||||||
* Set key events
|
* Set key events
|
||||||
*/
|
*/
|
||||||
|
|
||||||
setSnakeDirection = (direction) => snake.direction = direction;
|
const setSnakeDirection = (direction) => snake.direction = direction;
|
||||||
|
|
||||||
document.onkeydown = function(e) {
|
document.onkeydown = function(e) {
|
||||||
switch (e.keyCode) {
|
switch (e.keyCode) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user