@vankosoft/game-platform 1.1.1 → 1.2.0
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/assets/images/Cards/BridgeBelote/aceclub.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/acediamond.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/aceheart.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/acespade.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/back.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/eightclub.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/eightdiamond.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/eightheart.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/eightspade.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/jackclub.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/jackdiamond.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/jackheart.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/jackspade.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/kingclub.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/kingdiamond.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/kingheart.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/kingspade.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/nineclub.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/ninediamond.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/nineheart.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/ninespade.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/queenclub.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/queendiamond.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/queenheart.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/queenspade.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/sevenclub.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/sevendiamond.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/sevenheart.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/sevenspade.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/tenclub.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/tendiamond.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/tenheart.png +0 -0
- package/dist/assets/images/Cards/BridgeBelote/tenspade.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/C10.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/C11.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/C12.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/C13.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/C14.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/C2.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/C3.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/C4.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/C5.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/C6.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/C7.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/C8.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/C9.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/D10.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/D11.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/D12.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/D13.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/D14.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/D2.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/D3.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/D4.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/D5.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/D6.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/D7.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/D8.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/D9.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/H10.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/H11.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/H12.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/H13.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/H14.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/H2.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/H3.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/H4.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/H5.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/H6.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/H7.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/H8.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/H9.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/S10.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/S11.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/S12.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/S13.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/S14.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/S2.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/S3.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/S4.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/S5.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/S6.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/S7.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/S8.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/S9.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/blue_back.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/gray_back.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/green_back.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/purple_back.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/red_back.png +0 -0
- package/dist/assets/images/Cards/ContractBridge/yellow_back.png +0 -0
- package/dist/cjs/Dto/CardGame/bidDto.d.ts +1 -0
- package/dist/cjs/Dto/CardGame/gameDto.d.ts +1 -0
- package/dist/cjs/Model/pile.d.ts +2 -2
- package/dist/cjs/index.js +4 -4
- package/package.json +1 -1
- package/rollup.config.mjs +1 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/cjs/Model/pile.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IThemes } from './themes';
|
|
2
2
|
import { CardDto } from '../Dto/CardGame/cardDto';
|
|
3
3
|
export declare class Pile {
|
|
4
|
-
static drawAsPile(cx: CanvasRenderingContext2D | null, pile: CardDto[], boardWidth: number, boardHeight: number, cardWidth: number, cardHeight: number, theme: IThemes): void;
|
|
5
|
-
static drawAsRound(cx: CanvasRenderingContext2D | null, pile: CardDto[], boardWidth: number, boardHeight: number, cardWidth: number, cardHeight: number, theme: IThemes): void;
|
|
4
|
+
static drawAsPile(cx: CanvasRenderingContext2D | null, cardImagesPath: string, pile: CardDto[], boardWidth: number, boardHeight: number, cardWidth: number, cardHeight: number, theme: IThemes): void;
|
|
5
|
+
static drawAsRound(cx: CanvasRenderingContext2D | null, cardImagesPath: string, pile: CardDto[], boardWidth: number, boardHeight: number, cardWidth: number, cardHeight: number, theme: IThemes): void;
|
|
6
6
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -678,7 +678,7 @@ class CardGamePlayerArea {
|
|
|
678
678
|
}
|
|
679
679
|
|
|
680
680
|
class Pile {
|
|
681
|
-
static drawAsPile(cx, pile, boardWidth, boardHeight, cardWidth, cardHeight, theme) {
|
|
681
|
+
static drawAsPile(cx, cardImagesPath, pile, boardWidth, boardHeight, cardWidth, cardHeight, theme) {
|
|
682
682
|
if (!cx) {
|
|
683
683
|
return;
|
|
684
684
|
}
|
|
@@ -698,7 +698,7 @@ class Pile {
|
|
|
698
698
|
angle = Math.PI / 4;
|
|
699
699
|
}
|
|
700
700
|
image = new Image(cardWidth, cardHeight);
|
|
701
|
-
image.src =
|
|
701
|
+
image.src = `${cardImagesPath}/${pile[c].cardIndex}.png`;
|
|
702
702
|
cx.save();
|
|
703
703
|
cx.translate(cardX, cardY);
|
|
704
704
|
cx.rotate(angle);
|
|
@@ -706,7 +706,7 @@ class Pile {
|
|
|
706
706
|
cx.restore();
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
|
-
static drawAsRound(cx, pile, boardWidth, boardHeight, cardWidth, cardHeight, theme) {
|
|
709
|
+
static drawAsRound(cx, cardImagesPath, pile, boardWidth, boardHeight, cardWidth, cardHeight, theme) {
|
|
710
710
|
if (!cx) {
|
|
711
711
|
return;
|
|
712
712
|
}
|
|
@@ -727,7 +727,7 @@ class Pile {
|
|
|
727
727
|
angle = Math.PI / 4;
|
|
728
728
|
}
|
|
729
729
|
image = new Image(cardWidth, cardHeight);
|
|
730
|
-
image.src =
|
|
730
|
+
image.src = `${cardImagesPath}/${pile[c].cardIndex}.png`;
|
|
731
731
|
cx.save();
|
|
732
732
|
cx.translate(cardX, cardY);
|
|
733
733
|
cx.rotate(angle);
|
package/package.json
CHANGED
package/rollup.config.mjs
CHANGED
|
@@ -8,8 +8,7 @@ const typescriptOptions = {
|
|
|
8
8
|
|
|
9
9
|
const copyOptions = {
|
|
10
10
|
targets: [
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
{ src: 'src/assets/*', dest: 'dist/assets' },
|
|
13
12
|
{ src: 'src/Type/*', dest: 'dist/cjs/Type' },
|
|
14
13
|
{ src: 'src/Dto/*', dest: 'dist/cjs/Dto' },
|
|
15
14
|
]
|