From: Geoffrey Allott Date: Sun, 4 Jun 2023 22:45:31 +0000 (+0100) Subject: add table and felt to cribbage X-Git-Url: https://git.pointlesshacks.com/?a=commitdiff_plain;h=3e5490f169d2ec4e111fcc9ebd13017b26b8a4ee;p=pokerwave.git add table and felt to cribbage --- diff --git a/site/modules/cribbage.js b/site/modules/cribbage.js index 2c4aeba..939a373 100644 --- a/site/modules/cribbage.js +++ b/site/modules/cribbage.js @@ -18,6 +18,9 @@ export class Cribbage extends GameWithChat { this.active = null; this.dealer = null; + const table = create_svg_element(this.svg, "ellipse", [], [["cx", "250"], ["cy", "253"], ["rx", "250"], ["ry", "110"], ["fill", "#604010"]]); + const felt = create_svg_element(this.svg, "ellipse", [], [["cx", "250"], ["cy", "250"], ["rx", "240"], ["ry", "100"], ["fill", "green"]]); + this.pass_control = create_svg_element(this.svg, "rect", ["pass-control", "active"], [["x", "400"], ["y", "400"], ["width", "120"], ["height", "50"], ["rx", "10"]]); this.pass_control.onclick = () => { this.send({type: "TakeAction", action: {action: "Pass"}});