Permalink
Browse files

few clean up things

  • Loading branch information...
cjstewart88 committed Apr 11, 2012
1 parent a3c83bd commit acf725ab28050124b0188b624bbf20063171a0bf
Showing with 3 additions and 10 deletions.
  1. +1 −1 package.json
  2. +2 −8 public/javascripts/client.js
  3. +0 −1 server.js
View
@@ -1,6 +1,6 @@
{
"name": "hudln",
- "version": "0.0.1-12",
+ "version": "0.0.1-13",
"dependencies": {
"express": "*",
"socket.io": "*",
@@ -20,7 +20,6 @@
});
socket.on('client_moved', function (data) {
- console.log(data);
save_move_locally(data.client_id, data.direction, data.new_value);
});
@@ -77,17 +76,12 @@
$.each(clients, function (client) {
// draw clients
if (client == my_client_id) {
- realm_context.fillStyle = 'rgb(255,0,0)';
plot_x = 400;
plot_y = 300;
}
else {
- realm_context.fillStyle = 'rgb(255,255,0)';
- plot_x = my_x-clients[client][0];
- plot_y = my_y-clients[client][1];
-
- plot_x = (plot_x-400)*-1;
- plot_y = (plot_y-300)*-1;
+ plot_x = (my_x-clients[client][0]-400)*-1;
+ plot_y = (my_y-clients[client][1]-300)*-1;
}
realm_context.drawImage(character, clients[client][2], clients[client][3], 25, 32, plot_x, plot_y, 24, 32);
View
@@ -75,7 +75,6 @@ io.sockets.on('connection', function (client) {
// clients requesting to move
client.on('request_to_move_client', function (data) {
- console.log("boo");
var direction = data.direction;
var new_value = data.new_value;

0 comments on commit acf725a

Please sign in to comment.