add table and felt to cribbage
authorGeoffrey Allott <geoffrey@allott.email>
Sun, 4 Jun 2023 22:45:31 +0000 (23:45 +0100)
committerGeoffrey Allott <geoffrey@allott.email>
Sun, 4 Jun 2023 22:45:31 +0000 (23:45 +0100)
site/modules/cribbage.js

index 2c4aeba412c8ebb2d4eb863fe5d9be4613c2073f..939a37313a7f4a2263a99a917e71c6861fc31b2a 100644 (file)
@@ -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"}});