pixi integration is improving

This commit is contained in:
2020-12-14 23:07:03 +01:00
parent c194164e3c
commit 965b7a5ad7
4 changed files with 76 additions and 35 deletions

View File

@ -27,6 +27,7 @@
let t = JSON.stringify(msg);
window.game_socket.send(t);
}
</script>
<div style="font-family:Wizzta; font-size:100px"></div>
@ -37,12 +38,12 @@
<script src="/js-cardgame/js/player.js"></script>
<script src="/js-cardgame/js/game.js"></script>
<script>
let game = null;
<script>
//let game = null;
//window.game = null;
//window.onload = function()
function setupGame(names)
function setupGame(names, hand)
{
PIXI.AbstractRenderer.autoDensity = true;
@ -91,7 +92,8 @@ function setupGame(names)
game = new Game(app.stage, resources);
//game.init(['Hubert', 'Struppi', 'Patrice', 'Steffi', "Max", "Renate"]);
game.init(names)
game.give_round(["z3", "b04", "r08", "g12", "y13", "r02", "b05", "b02", "b03", "g03", "g05"]);
game.give_round(hand)
//game.give_round(["z3", "b04", "r08", "g12", "y13", "r02", "b05", "b02", "b03", "g03", "g05"]);
//game.play_card(0, 0, "z3");
//game.play_card(1, 0, "y13");
//game.play_card(2, 0, "b02");