@masonf539/egyptian-war 1.0.1-beta.1 → 1.0.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definition.js +1 -1
- package/docs/design.md +1 -1
- package/package.json +1 -1
- package/public/client.js +10 -5
- package/public/style.css +14 -13
package/dist/definition.js
CHANGED
|
@@ -124,7 +124,7 @@ exports.egyptianWar = {
|
|
|
124
124
|
};
|
|
125
125
|
exports.egyptianWarManifest = {
|
|
126
126
|
apiVersion: game_sdk_1.gameHubGameApiVersion,
|
|
127
|
-
packageVersion: "1.0.1-beta.
|
|
127
|
+
packageVersion: "1.0.1-beta.2",
|
|
128
128
|
definition: exports.egyptianWar,
|
|
129
129
|
client: {
|
|
130
130
|
delivery: "embedded",
|
package/docs/design.md
CHANGED
|
@@ -121,6 +121,6 @@ Checked implementation items do not imply that every multiplayer interaction has
|
|
|
121
121
|
- [x] Give the CSS table a layered casino-felt, wooden-rail, depth, and drop-shadow treatment while retaining its original oval shape.
|
|
122
122
|
- [x] Draw cards as accessible HTML/CSS playing-card faces; do not depend on external card image assets.
|
|
123
123
|
- [x] Render mirrored card corners, distinct face-card styling, and a Joker with vertical JOKER labels and a decorative center that is distinguishable from a Jack.
|
|
124
|
-
- [x] Render slap hands with a
|
|
124
|
+
- [x] Render slap hands with the original splayed-hand emoji on desktop and a clearer raised-palm variant on coarse-pointer/mobile devices, scale them and their stopping distance with the rendered card size, keep their shadows visually below the hand at every seat rotation, and layer later collected attempts above the official winner.
|
|
125
125
|
- [x] Keep the table, player seats, card motion, spectator area, and controls usable on narrow screens and with reduced-motion preferences.
|
|
126
126
|
- Offer chat per game rather than requiring it in every game; games that rely on secrecy or fast rounds can opt out, while social multiplayer games can enable it.
|
package/package.json
CHANGED
package/public/client.js
CHANGED
|
@@ -83,11 +83,16 @@ function createEgyptianWarSlapHand() {
|
|
|
83
83
|
const handGlyph = document.createElement("span");
|
|
84
84
|
handGlyph.className = "egyptian-war-flying-hand-glyph";
|
|
85
85
|
handGlyph.setAttribute("aria-hidden", "true");
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
|
|
87
|
+
const desktopHand = document.createElement("span");
|
|
88
|
+
desktopHand.className = "egyptian-war-slap-hand-desktop";
|
|
89
|
+
desktopHand.textContent = "💐️";
|
|
90
|
+
|
|
91
|
+
const mobileHand = document.createElement("span");
|
|
92
|
+
mobileHand.className = "egyptian-war-slap-hand-mobile";
|
|
93
|
+
mobileHand.textContent = "✋";
|
|
94
|
+
|
|
95
|
+
handGlyph.append(desktopHand, mobileHand);
|
|
91
96
|
return handGlyph;
|
|
92
97
|
}
|
|
93
98
|
function renderEgyptianWarSlapRules(settings) {
|
package/public/style.css
CHANGED
|
@@ -755,25 +755,26 @@ body:has([data-game-plugin-root="egyptian-war"]:not([hidden])) #gameplay-view {
|
|
|
755
755
|
animation-delay: inherit;
|
|
756
756
|
}
|
|
757
757
|
|
|
758
|
-
.egyptian-war-slap-hand-
|
|
758
|
+
.egyptian-war-slap-hand-desktop,
|
|
759
|
+
.egyptian-war-slap-hand-mobile {
|
|
759
760
|
display: block;
|
|
760
761
|
width: 1em;
|
|
761
|
-
height:
|
|
762
|
-
|
|
762
|
+
height: 1em;
|
|
763
|
+
line-height: 1;
|
|
763
764
|
}
|
|
764
765
|
|
|
765
|
-
.egyptian-war-slap-hand-
|
|
766
|
-
|
|
767
|
-
stroke: #aa6818;
|
|
768
|
-
stroke-width: 3;
|
|
769
|
-
stroke-linejoin: round;
|
|
766
|
+
.egyptian-war-slap-hand-mobile {
|
|
767
|
+
display: none;
|
|
770
768
|
}
|
|
771
769
|
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
770
|
+
@media (pointer: coarse) {
|
|
771
|
+
.egyptian-war-slap-hand-desktop {
|
|
772
|
+
display: none;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.egyptian-war-slap-hand-mobile {
|
|
776
|
+
display: block;
|
|
777
|
+
}
|
|
777
778
|
}
|
|
778
779
|
|
|
779
780
|
@keyframes egyptian-war-hand-travel {
|