Merge pull request #55 from H4CK3R-01/Change_card_stacks
Updated card stacks
This commit is contained in:
commit
e533084628
Binary file not shown.
Before Width: | Height: | Size: 592 KiB |
BIN
public/img/card_stack_1.png
Normal file
BIN
public/img/card_stack_1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 162 KiB |
BIN
public/img/card_stack_2.png
Normal file
BIN
public/img/card_stack_2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 161 KiB |
BIN
public/img/card_stack_3.png
Normal file
BIN
public/img/card_stack_3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 164 KiB |
@ -76,7 +76,7 @@ function start_game() {
|
||||
|
||||
|
||||
// Card stacks
|
||||
let cards_1 = generate_card_stack(PIXI.Sprite.from('/img/card_stack.png'), 3, 3, function () {
|
||||
let cards_1 = generate_card_stack(PIXI.Sprite.from('/img/card_stack_1.png'), 3, 3, function () {
|
||||
if (diced && !show_card && rolled_number === 1) {
|
||||
console.log("1");
|
||||
socket.emit('get card', 1);
|
||||
@ -84,7 +84,7 @@ function start_game() {
|
||||
});
|
||||
app.stage.addChild(cards_1);
|
||||
|
||||
let cards_2 = generate_card_stack(PIXI.Sprite.from('/img/card_stack.png'), 5, 3, function () {
|
||||
let cards_2 = generate_card_stack(PIXI.Sprite.from('/img/card_stack_2.png'), 5, 3, function () {
|
||||
if (diced && !show_card && rolled_number === 2) {
|
||||
console.log("2");
|
||||
socket.emit('get card', 2);
|
||||
@ -92,7 +92,7 @@ function start_game() {
|
||||
});
|
||||
app.stage.addChild(cards_2);
|
||||
|
||||
let cards_3 = generate_card_stack(PIXI.Sprite.from('/img/card_stack.png'), 7, 3, function () {
|
||||
let cards_3 = generate_card_stack(PIXI.Sprite.from('/img/card_stack_3.png'), 7, 3, function () {
|
||||
if (diced && !show_card && rolled_number === 3) {
|
||||
console.log("3");
|
||||
socket.emit('get card', 3);
|
||||
|
Loading…
Reference in New Issue
Block a user