Merge pull request #11 from H4CK3R-01/logo

Added logo
This commit is contained in:
H4CK3R-01 2021-06-09 14:16:30 +02:00 committed by GitHub
commit dc1af4eae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

BIN
public/img/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
public/img/logo_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

View File

@ -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;