diff --git a/css/main.css b/css/main.css index a975ce9..ec9fe77 100644 --- a/css/main.css +++ b/css/main.css @@ -49,6 +49,102 @@ transform-origin: 0; } +.guy1-0-0 { + background: url(../img/guy_sprite.png) 0px 0px; +} + +.guy1-0-1 { + background: url(../img/guy_sprite.png) -32px 0px; +} + +.guy1-0-2 { + background: url(../img/guy_sprite.png) -64px 0px; +} + +.guy0--1-0 { + background: url(../img/guy_sprite.png) 0px -32px; +} + +.guy0--1-1 { + background: url(../img/guy_sprite.png) -32px -32px; +} + +.guy0--1-2 { + background: url(../img/guy_sprite.png) -64px -32px; +} + +.guy0-1-0 { + background: url(../img/guy_sprite.png) 0px 192px; +} + +.guy0-1-1 { + background: url(../img/guy_sprite.png) -32px 192px; +} + +.guy0-1-2 { + background: url(../img/guy_sprite.png) -64px 192px; +} + +.guy-1-0-0 { + background: url(../img/guy_sprite.png) 0px 160px; +} + +.guy-1-0-1 { + background: url(../img/guy_sprite.png) -32px 160px; +} + +.guy-1-0-2 { + background: url(../img/guy_sprite.png) -64px 160px; +} + +.guy-1--1-0 { + background: url(../img/guy_sprite.png) -96px 224px; +} + +.guy-1--1-1 { + background: url(../img/guy_sprite.png) -128px 224px; +} + +.guy-1--1-2 { + background: url(../img/guy_sprite.png) -160px 224px; +} + +.guy-1-1-0 { + background: url(../img/guy_sprite.png) -96px 160px; +} + +.guy-1-1-1 { + background: url(../img/guy_sprite.png) -128px 160px; +} + +.guy-1-1-2 { + background: url(../img/guy_sprite.png) -160px 160px; +} + +.guy1-1-0 { + background: url(../img/guy_sprite.png) -96px -64px; +} + +.guy1-1-1 { + background: url(../img/guy_sprite.png) -128px -64px; +} + +.guy1-1-2 { + background: url(../img/guy_sprite.png) -160px -64px; +} + +.guy1--1-0 { + background: url(../img/guy_sprite.png) -96px 0px; +} + +.guy1--1-1 { + background: url(../img/guy_sprite.png) -128px 0px; +} + +.guy1--1-2 { + background: url(../img/guy_sprite.png) -160px 0px; +} + html { -webkit-transform: scale(1.5); transform: scale(2); diff --git a/js/main.js b/js/main.js index c108534..b6bde93 100644 --- a/js/main.js +++ b/js/main.js @@ -47,23 +47,35 @@ socket.on('getmap', function (conent) { }); function addNewPlayer(player, id) { - if($("#"+id).length==0) - $("body").append('