Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions game.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Ball.prototype.move = function(){

//TODO: Check for a hit with platform
}
if (!this.dX || !this.dY) this.calculatedXdY();
if ((this.dY == null) || (this.dY == null)) this.calculatedXdY();

this.oldX = this.x;
this.oldY = this.y;
Expand Down Expand Up @@ -310,4 +310,4 @@ var step = function(timestamp){
var startGame = function(){
init();
window.requestAnimationFrame(step);
}
}
2 changes: 1 addition & 1 deletion gamestarter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var port = 1337;
var portP1 = 1338;
var portP2 = 1339;
var ip = "192.168.0.102";
var ip = "localhost";
var WS_START = "ws://";
var connectMsg = "connected";

Expand Down