pixi integration is improving
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user