diff --git a/cards/colorchange.png b/cards/colorchange.png new file mode 100644 index 0000000..c980c36 Binary files /dev/null and b/cards/colorchange.png differ diff --git a/cards/colored/b+2.png b/cards/colored/b+2.png new file mode 100644 index 0000000..14bea55 Binary files /dev/null and b/cards/colored/b+2.png differ diff --git a/cards/colored/b4.png b/cards/colored/b4.png new file mode 100644 index 0000000..9a2b8a5 Binary files /dev/null and b/cards/colored/b4.png differ diff --git a/cards/colored/b5.png b/cards/colored/b5.png new file mode 100644 index 0000000..ff6846b Binary files /dev/null and b/cards/colored/b5.png differ diff --git a/cards/colored/b6.png b/cards/colored/b6.png new file mode 100644 index 0000000..7ec4827 Binary files /dev/null and b/cards/colored/b6.png differ diff --git a/cards/colored/b7.png b/cards/colored/b7.png new file mode 100644 index 0000000..c07b8d2 Binary files /dev/null and b/cards/colored/b7.png differ diff --git a/cards/colored/b8.png b/cards/colored/b8.png new file mode 100644 index 0000000..bd0ec32 Binary files /dev/null and b/cards/colored/b8.png differ diff --git a/cards/colored/b9.png b/cards/colored/b9.png new file mode 100644 index 0000000..19bfba1 Binary files /dev/null and b/cards/colored/b9.png differ diff --git a/cards/colored/bcolorchange.png b/cards/colored/bcolorchange.png new file mode 100644 index 0000000..7b8241c Binary files /dev/null and b/cards/colored/bcolorchange.png differ diff --git a/cards/colored/breverse.png b/cards/colored/breverse.png new file mode 100644 index 0000000..f576011 Binary files /dev/null and b/cards/colored/breverse.png differ diff --git a/cards/colored/bskip.png b/cards/colored/bskip.png new file mode 100644 index 0000000..9e59382 Binary files /dev/null and b/cards/colored/bskip.png differ diff --git a/cards/colored/g+2.png b/cards/colored/g+2.png new file mode 100644 index 0000000..9cf7cea Binary files /dev/null and b/cards/colored/g+2.png differ diff --git a/cards/colored/g4.png b/cards/colored/g4.png new file mode 100644 index 0000000..7495253 Binary files /dev/null and b/cards/colored/g4.png differ diff --git a/cards/colored/g5.png b/cards/colored/g5.png new file mode 100644 index 0000000..ec8f7b0 Binary files /dev/null and b/cards/colored/g5.png differ diff --git a/cards/colored/g6.png b/cards/colored/g6.png new file mode 100644 index 0000000..679f3a6 Binary files /dev/null and b/cards/colored/g6.png differ diff --git a/cards/colored/g7.png b/cards/colored/g7.png new file mode 100644 index 0000000..a39904e Binary files /dev/null and b/cards/colored/g7.png differ diff --git a/cards/colored/g8.png b/cards/colored/g8.png new file mode 100644 index 0000000..fac8e9a Binary files /dev/null and b/cards/colored/g8.png differ diff --git a/cards/colored/g9.png b/cards/colored/g9.png new file mode 100644 index 0000000..4fa0467 Binary files /dev/null and b/cards/colored/g9.png differ diff --git a/cards/colored/gcolorchange.png b/cards/colored/gcolorchange.png new file mode 100644 index 0000000..232af1f Binary files /dev/null and b/cards/colored/gcolorchange.png differ diff --git a/cards/colored/greverse.png b/cards/colored/greverse.png new file mode 100644 index 0000000..51f6de4 Binary files /dev/null and b/cards/colored/greverse.png differ diff --git a/cards/colored/gskip.png b/cards/colored/gskip.png new file mode 100644 index 0000000..a0a003b Binary files /dev/null and b/cards/colored/gskip.png differ diff --git a/cards/colored/r+2.png b/cards/colored/r+2.png new file mode 100644 index 0000000..4ff6bad Binary files /dev/null and b/cards/colored/r+2.png differ diff --git a/cards/colored/r4.png b/cards/colored/r4.png new file mode 100644 index 0000000..d488e0b Binary files /dev/null and b/cards/colored/r4.png differ diff --git a/cards/colored/r5.png b/cards/colored/r5.png new file mode 100644 index 0000000..8ba0c3d Binary files /dev/null and b/cards/colored/r5.png differ diff --git a/cards/colored/r6.png b/cards/colored/r6.png new file mode 100644 index 0000000..1cf9de9 Binary files /dev/null and b/cards/colored/r6.png differ diff --git a/cards/colored/r7.png b/cards/colored/r7.png new file mode 100644 index 0000000..559dad7 Binary files /dev/null and b/cards/colored/r7.png differ diff --git a/cards/colored/r8.png b/cards/colored/r8.png new file mode 100644 index 0000000..c9e7c42 Binary files /dev/null and b/cards/colored/r8.png differ diff --git a/cards/colored/r9.png b/cards/colored/r9.png new file mode 100644 index 0000000..4c0ba19 Binary files /dev/null and b/cards/colored/r9.png differ diff --git a/cards/colored/rcolorchange.png b/cards/colored/rcolorchange.png new file mode 100644 index 0000000..45cd243 Binary files /dev/null and b/cards/colored/rcolorchange.png differ diff --git a/cards/colored/rreverse.png b/cards/colored/rreverse.png new file mode 100644 index 0000000..b9b4dd1 Binary files /dev/null and b/cards/colored/rreverse.png differ diff --git a/cards/colored/rskip.png b/cards/colored/rskip.png new file mode 100644 index 0000000..04a98d2 Binary files /dev/null and b/cards/colored/rskip.png differ diff --git a/cards/colored/y+2.png b/cards/colored/y+2.png new file mode 100644 index 0000000..4354f60 Binary files /dev/null and b/cards/colored/y+2.png differ diff --git a/cards/colored/y4.png b/cards/colored/y4.png new file mode 100644 index 0000000..799dfa8 Binary files /dev/null and b/cards/colored/y4.png differ diff --git a/cards/colored/y5.png b/cards/colored/y5.png new file mode 100644 index 0000000..2304de5 Binary files /dev/null and b/cards/colored/y5.png differ diff --git a/cards/colored/y6.png b/cards/colored/y6.png new file mode 100644 index 0000000..5a5786a Binary files /dev/null and b/cards/colored/y6.png differ diff --git a/cards/colored/y7.png b/cards/colored/y7.png new file mode 100644 index 0000000..09a0c09 Binary files /dev/null and b/cards/colored/y7.png differ diff --git a/cards/colored/y8.png b/cards/colored/y8.png new file mode 100644 index 0000000..7cf25c3 Binary files /dev/null and b/cards/colored/y8.png differ diff --git a/cards/colored/y9.png b/cards/colored/y9.png new file mode 100644 index 0000000..2daa20f Binary files /dev/null and b/cards/colored/y9.png differ diff --git a/cards/colored/ycolorchange.png b/cards/colored/ycolorchange.png new file mode 100644 index 0000000..0f9e763 Binary files /dev/null and b/cards/colored/ycolorchange.png differ diff --git a/cards/colored/yreverse.png b/cards/colored/yreverse.png new file mode 100644 index 0000000..aeef06a Binary files /dev/null and b/cards/colored/yreverse.png differ diff --git a/cards/colored/yskip.png b/cards/colored/yskip.png new file mode 100644 index 0000000..6b31630 Binary files /dev/null and b/cards/colored/yskip.png differ diff --git a/game.json b/game.json index 2e4dffb..57877c9 100644 --- a/game.json +++ b/game.json @@ -7,27 +7,316 @@ "script": "game.rhai", "default_back": "cards/back.png", "available_cards": { - "Y1": { "image": "cards/colored/y1.png", "color": "Y", "number": "1" }, - "G1": { "image": "cards/colored/g1.png", "color": "G", "number": "1" }, - "G0": { "image": "cards/colored/g0.png", "color": "G", "number": "0" }, - "G2": { "image": "cards/colored/g2.png", "color": "G", "number": "2" }, - "B0": { "image": "cards/colored/b0.png", "color": "B", "number": "0" }, - "B1": { "image": "cards/colored/b1.png", "color": "B", "number": "1" }, - "Y3": { "image": "cards/colored/y3.png", "color": "Y", "number": "3" }, - "R2": { "image": "cards/colored/r2.png", "color": "R", "number": "2" }, - "R0": { "image": "cards/colored/r0.png", "color": "R", "number": "0" }, - "Y2": { "image": "cards/colored/y2.png", "color": "Y", "number": "2" }, - "G3": { "image": "cards/colored/g3.png", "color": "G", "number": "3" }, - "R3": { "image": "cards/colored/r3.png", "color": "R", "number": "3" }, - "Y0": { "image": "cards/colored/y0.png", "color": "Y", "number": "0" }, - "B2": { "image": "cards/colored/b2.png", "color": "B", "number": "2" }, - "B3": { "image": "cards/colored/b3.png", "color": "B", "number": "3" }, - "R1": { "image": "cards/colored/r1.png", "color": "R", "number": "1" }, - "G+4": { "image": "cards/colored/g+4.png", "color": "G", "number": "+4" }, - "R+4": { "image": "cards/colored/r+4.png", "color": "R", "number": "+4" }, - "Y+4": { "image": "cards/colored/y+4.png", "color": "Y", "number": "+4" }, - "B+4": { "image": "cards/colored/b+4.png", "color": "B", "number": "+4" }, - "+4": { "image": "cards/+4.png", "color": "N", "number": "+4" } + "Y7": { + "image": "cards/colored/y7.png", + "color": "Y", + "number": "7" + }, + "B6": { + "image": "cards/colored/b6.png", + "color": "B", + "number": "6" + }, + "Y1": { + "image": "cards/colored/y1.png", + "color": "Y", + "number": "1" + }, + "Y+2": { + "image": "cards/colored/y+2.png", + "color": "Y", + "number": "+2" + }, + "R9": { + "image": "cards/colored/r9.png", + "color": "R", + "number": "9" + }, + "G1": { + "image": "cards/colored/g1.png", + "color": "G", + "number": "1" + }, + "G0": { + "image": "cards/colored/g0.png", + "color": "G", + "number": "0" + }, + "B5": { + "image": "cards/colored/b5.png", + "color": "B", + "number": "5" + }, + "G5": { + "image": "cards/colored/g5.png", + "color": "G", + "number": "5" + }, + "Y6": { + "image": "cards/colored/y6.png", + "color": "Y", + "number": "6" + }, + "R7": { + "image": "cards/colored/r7.png", + "color": "R", + "number": "7" + }, + "G6": { + "image": "cards/colored/g6.png", + "color": "G", + "number": "6" + }, + "BSKIP": { + "image": "cards/colored/bskip.png", + "color": "B", + "number": "SKIP" + }, + "B4": { + "image": "cards/colored/b4.png", + "color": "B", + "number": "4" + }, + "GREVERSE": { + "image": "cards/colored/greverse.png", + "color": "G", + "number": "REVERSE" + }, + "R4": { + "image": "cards/colored/r4.png", + "color": "R", + "number": "4" + }, + "RREVERSE": { + "image": "cards/colored/rreverse.png", + "color": "R", + "number": "REVERSE" + }, + "G2": { + "image": "cards/colored/g2.png", + "color": "G", + "number": "2" + }, + "B0": { + "image": "cards/colored/b0.png", + "color": "B", + "number": "0" + }, + "G8": { + "image": "cards/colored/g8.png", + "color": "G", + "number": "8" + }, + "B1": { + "image": "cards/colored/b1.png", + "color": "B", + "number": "1" + }, + "GSKIP": { + "image": "cards/colored/gskip.png", + "color": "G", + "number": "SKIP" + }, + "Y3": { + "image": "cards/colored/y3.png", + "color": "Y", + "number": "3" + }, + "G+2": { + "image": "cards/colored/g+2.png", + "color": "G", + "number": "+2" + }, + "R6": { + "image": "cards/colored/r6.png", + "color": "R", + "number": "6" + }, + "R2": { + "image": "cards/colored/r2.png", + "color": "R", + "number": "2" + }, + "R0": { + "image": "cards/colored/r0.png", + "color": "R", + "number": "0" + }, + "G4": { + "image": "cards/colored/g4.png", + "color": "G", + "number": "4" + }, + "R8": { + "image": "cards/colored/r8.png", + "color": "R", + "number": "8" + }, + "R+2": { + "image": "cards/colored/r+2.png", + "color": "R", + "number": "+2" + }, + "R5": { + "image": "cards/colored/r5.png", + "color": "R", + "number": "5" + }, + "Y9": { + "image": "cards/colored/y9.png", + "color": "Y", + "number": "9" + }, + "Y2": { + "image": "cards/colored/y2.png", + "color": "Y", + "number": "2" + }, + "G3": { + "image": "cards/colored/g3.png", + "color": "G", + "number": "3" + }, + "G7": { + "image": "cards/colored/g7.png", + "color": "G", + "number": "7" + }, + "RSKIP": { + "image": "cards/colored/rskip.png", + "color": "R", + "number": "SKIP" + }, + "Y4": { + "image": "cards/colored/y4.png", + "color": "Y", + "number": "4" + }, + "R3": { + "image": "cards/colored/r3.png", + "color": "R", + "number": "3" + }, + "Y0": { + "image": "cards/colored/y0.png", + "color": "Y", + "number": "0" + }, + "B2": { + "image": "cards/colored/b2.png", + "color": "B", + "number": "2" + }, + "Y5": { + "image": "cards/colored/y5.png", + "color": "Y", + "number": "5" + }, + "B9": { + "image": "cards/colored/b9.png", + "color": "B", + "number": "9" + }, + "B+2": { + "image": "cards/colored/b+2.png", + "color": "B", + "number": "+2" + }, + "YREVERSE": { + "image": "cards/colored/yreverse.png", + "color": "Y", + "number": "REVERSE" + }, + "B7": { + "image": "cards/colored/b7.png", + "color": "B", + "number": "7" + }, + "B8": { + "image": "cards/colored/b8.png", + "color": "B", + "number": "8" + }, + "G9": { + "image": "cards/colored/g9.png", + "color": "G", + "number": "9" + }, + "B3": { + "image": "cards/colored/b3.png", + "color": "B", + "number": "3" + }, + "YSKIP": { + "image": "cards/colored/yskip.png", + "color": "Y", + "number": "SKIP" + }, + "Y8": { + "image": "cards/colored/y8.png", + "color": "Y", + "number": "8" + }, + "BREVERSE": { + "image": "cards/colored/breverse.png", + "color": "B", + "number": "REVERSE" + }, + "R1": { + "image": "cards/colored/r1.png", + "color": "R", + "number": "1" + }, + "G+4": { + "image": "cards/colored/g+4.png", + "color": "G", + "number": "+4" + }, + "R+4": { + "image": "cards/colored/r+4.png", + "color": "R", + "number": "+4" + }, + "Y+4": { + "image": "cards/colored/y+4.png", + "color": "Y", + "number": "+4" + }, + "B+4": { + "image": "cards/colored/b+4.png", + "color": "B", + "number": "+4" + }, + "RCOLORCHANGE": { + "image": "cards/colored/rcolorchange.png", + "color": "R", + "number": "COLORCHANGE" + }, + "YCOLORCHANGE": { + "image": "cards/colored/ycolorchange.png", + "color": "Y", + "number": "COLORCHANGE" + }, + "GCOLORCHANGE": { + "image": "cards/colored/gcolorchange.png", + "color": "G", + "number": "COLORCHANGE" + }, + "BCOLORCHANGE": { + "image": "cards/colored/bcolorchange.png", + "color": "B", + "number": "COLORCHANGE" + }, + "+4": { + "image": "cards/+4.png", + "color": "N", + "number": "+4" + }, + "COLORCHANGE": { + "image": "cards/colorchange.png", + "color": "N", + "number": "COLORCHANGE" + } }, "piles": { "deck": { @@ -44,12 +333,106 @@ "R2", "G2", "Y2", + "B3", + "R3", + "G3", + "Y3", + "B4", + "R4", + "G4", + "Y4", + "B5", + "R5", + "G5", + "Y5", + "B6", + "R6", + "G6", + "Y6", + "B7", + "B8", + "B9", + "BSKIP", + "BREVERSE", + "B+2", + "R7", + "R8", + "R9", + "RSKIP", + "RREVERSE", + "R+2", + "G7", + "G8", + "G9", + "GSKIP", + "GREVERSE", + "G+2", + "Y7", + "Y8", + "Y9", + "YSKIP", + "YREVERSE", + "Y+2", + "+4", + "COLORCHANGE", "+4", + "COLORCHANGE", + "B0", + "R0", + "G0", + "Y0", + "B1", + "R1", + "G1", + "Y1", + "B2", + "R2", + "G2", + "Y2", "B3", "R3", "G3", "Y3", - "+4" + "B4", + "R4", + "G4", + "Y4", + "B5", + "R5", + "G5", + "Y5", + "B6", + "R6", + "G6", + "Y6", + "B7", + "B8", + "B9", + "BSKIP", + "BREVERSE", + "B+2", + "R7", + "R8", + "R9", + "RSKIP", + "RREVERSE", + "R+2", + "G7", + "G8", + "G9", + "GSKIP", + "GREVERSE", + "G+2", + "Y7", + "Y8", + "Y9", + "YSKIP", + "YREVERSE", + "Y+2", + "+4", + "COLORCHANGE", + "+4", + "COLORCHANGE" ], "face_down": true }, @@ -57,9 +440,8 @@ }, "player_piles": { "deck": { - "cards": ["+4"] + "cards": [] }, - "color_select": { - } + "color_select": {} } } \ No newline at end of file diff --git a/game.rhai b/game.rhai index 93bef25..1002105 100644 --- a/game.rhai +++ b/game.rhai @@ -9,7 +9,7 @@ fn setup(data) { // print(data.player_piles); - for i in range(0, 2) { + for i in range(0, 7) { // print(i); for player_idx in range(0, data.player_piles.len) { // print("Deck" + player); @@ -50,7 +50,6 @@ fn on_click(data, card, action_author, current_player) { if card.pile_kind != "common" && card.pile_name == "color_select" { data.selecting_color_plus4 = false; let c = data.pop_card(card); - print(c); data.piles.placed.cards.push(c); data.player_piles[current_player.val].color_select.cards = []; data.next_plus4 = 1;