Skip to content

Commit

Permalink
Update jquery, making the bot a bit slower
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmousee committed Jul 28, 2020
1 parent 59c84c2 commit 7edb9f6
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

chrome/.DS_Store
.DS_Store
15 changes: 15 additions & 0 deletions chrome/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "file:///${workspaceFolder}/game.html",
"webRoot": "${workspaceFolder}"
}
]
}
2 changes: 1 addition & 1 deletion chrome/game.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body>
<canvas id="canvas" tabindex="1" width="640" height="480"></canvas>
<script src="jquery-3.2.1.slim.min.js"></script>
<script src="jquery-3.5.1.slim.min.js"></script>
<script src="game.js"></script>
<script src="entity.js"></script>
<script src="ball.js"></script>
Expand Down
4 changes: 0 additions & 4 deletions chrome/jquery-3.2.1.slim.min.js

This file was deleted.

2 changes: 2 additions & 0 deletions chrome/jquery-3.5.1.slim.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion chrome/paddles.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Bot() {

this.x = game.width - this.width - 20;

this.speed = 10;
this.speed = 5;
}

Bot.prototype = Object.create(Paddle.prototype);
Expand Down

0 comments on commit 7edb9f6

Please sign in to comment.