Browse Source

Add all cards

main
ThePerkinrex 5 years ago
parent
commit
a1a80e9e87
No known key found for this signature in database GPG Key ID: FD81DE6D75E20917
  1. BIN
      cards/colorchange.png
  2. BIN
      cards/colored/b+2.png
  3. BIN
      cards/colored/b4.png
  4. BIN
      cards/colored/b5.png
  5. BIN
      cards/colored/b6.png
  6. BIN
      cards/colored/b7.png
  7. BIN
      cards/colored/b8.png
  8. BIN
      cards/colored/b9.png
  9. BIN
      cards/colored/bcolorchange.png
  10. BIN
      cards/colored/breverse.png
  11. BIN
      cards/colored/bskip.png
  12. BIN
      cards/colored/g+2.png
  13. BIN
      cards/colored/g4.png
  14. BIN
      cards/colored/g5.png
  15. BIN
      cards/colored/g6.png
  16. BIN
      cards/colored/g7.png
  17. BIN
      cards/colored/g8.png
  18. BIN
      cards/colored/g9.png
  19. BIN
      cards/colored/gcolorchange.png
  20. BIN
      cards/colored/greverse.png
  21. BIN
      cards/colored/gskip.png
  22. BIN
      cards/colored/r+2.png
  23. BIN
      cards/colored/r4.png
  24. BIN
      cards/colored/r5.png
  25. BIN
      cards/colored/r6.png
  26. BIN
      cards/colored/r7.png
  27. BIN
      cards/colored/r8.png
  28. BIN
      cards/colored/r9.png
  29. BIN
      cards/colored/rcolorchange.png
  30. BIN
      cards/colored/rreverse.png
  31. BIN
      cards/colored/rskip.png
  32. BIN
      cards/colored/y+2.png
  33. BIN
      cards/colored/y4.png
  34. BIN
      cards/colored/y5.png
  35. BIN
      cards/colored/y6.png
  36. BIN
      cards/colored/y7.png
  37. BIN
      cards/colored/y8.png
  38. BIN
      cards/colored/y9.png
  39. BIN
      cards/colored/ycolorchange.png
  40. BIN
      cards/colored/yreverse.png
  41. BIN
      cards/colored/yskip.png
  42. 432
      game.json
  43. 3
      game.rhai

BIN
cards/colorchange.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
cards/colored/b+2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
cards/colored/b4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
cards/colored/b5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
cards/colored/b6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
cards/colored/b7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
cards/colored/b8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
cards/colored/b9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
cards/colored/bcolorchange.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
cards/colored/breverse.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
cards/colored/bskip.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
cards/colored/g+2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
cards/colored/g4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
cards/colored/g5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
cards/colored/g6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
cards/colored/g7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
cards/colored/g8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
cards/colored/g9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
cards/colored/gcolorchange.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
cards/colored/greverse.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
cards/colored/gskip.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
cards/colored/r+2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
cards/colored/r4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
cards/colored/r5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
cards/colored/r6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
cards/colored/r7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
cards/colored/r8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
cards/colored/r9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
cards/colored/rcolorchange.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
cards/colored/rreverse.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
cards/colored/rskip.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
cards/colored/y+2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
cards/colored/y4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
cards/colored/y5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
cards/colored/y6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
cards/colored/y7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
cards/colored/y8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
cards/colored/y9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
cards/colored/ycolorchange.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
cards/colored/yreverse.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
cards/colored/yskip.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

432
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": {}
}
}

3
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;

Loading…
Cancel
Save