diff --git a/public/img/logo.png b/public/img/logo.png new file mode 100644 index 0000000..b4c7924 Binary files /dev/null and b/public/img/logo.png differ diff --git a/public/img/logo_2.png b/public/img/logo_2.png new file mode 100644 index 0000000..54a968d Binary files /dev/null and b/public/img/logo_2.png differ diff --git a/public/js/game.js b/public/js/game.js index 8f4ec1f..5c79357 100644 --- a/public/js/game.js +++ b/public/js/game.js @@ -135,6 +135,16 @@ function start_game() { app.stage.addChild(border_card_stack); + + // Logo + let logo = PIXI.Sprite.from('/img/logo_2.png'); + logo.x = sprite_size * 3 - sprite_size * 0.2; + logo.y = sprite_size * 5.5 - sprite_size * 0.2; + logo.width = sprite_size * 3.5; + logo.height = sprite_size * 1.5; + // logo.rotation -= Math.PI / 8; + app.stage.addChild(logo); + socket.on('dice', function (randomInt) { rolled_number = randomInt; diced = true;