Skip to content

Commit

Permalink
Card box
Browse files Browse the repository at this point in the history
  • Loading branch information
Lypsilonx committed May 19, 2024
1 parent 642323e commit 2bb829d
Show file tree
Hide file tree
Showing 7 changed files with 577 additions and 90 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/autoTag.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
os.remove(".updateVersion")

#tag the commit
os.system(f"git tag -a v{new_version} -m 'Version {new_version}'")
os.system(f"git tag -a v{new_version} -m 'Version {new_version}'")
os.system(f"git push origin v{new_version}")
10 changes: 10 additions & 0 deletions .github/workflows/generateYaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,20 @@ def Quoted(s):
""")
}
},
{
'name': 'Render Box',
'uses': 'leana8959/typst-action@main',
'with': {
'source_file': LS("""\
box.typ
""")
}
},
{
'run': LS("""\
mkdir -p assets
mv Game\\ of\\ Intrigue.pdf assets/Game\\ of\\ Intrigue.pdf
mv box.pdf assets/box.pdf
""")
}
]
Expand Down
63 changes: 6 additions & 57 deletions Game of Intrigue.typ
Original file line number Diff line number Diff line change
Expand Up @@ -205,49 +205,7 @@
dx: -0.5em,
dy: -5em
)[
#rotate(-skew_angle)[
#skew(-skew_angle)[
#text(
weight: "extrabold",
size: 5em,
fill: white
)[
GAME
#text(
weight: "bold",
size: 0.8em
)[
#h(-0.2em)
of
]
INTRIGUE
]\
#text(
weight: "extrabold",
size: 2em,
fill: white
)[
a game about\ being an asshole
]
#v(2em)
#box(
width: 150%
)[
#grid(
rows: 1,
columns: (1fr) * 7,
fill: white,
)[
#icon("Pact", width: 5em, height: 5em, color: red)
#icon("Asset", width: 5em, height: 5em, color: orange)
#icon("Influence", width: 5em, height: 5em, color: yellow)
#icon("Social", width: 5em, height: 5em, color: green)
#icon("Speech", width: 5em, height: 5em, color: blue)
#icon("Role", width: 5em, height: 5em, color: purple)
]
]
]
]
#logo(banner: true)
]
#pagebreak()
#text(size: 3em, weight: "bold")[
Expand All @@ -261,13 +219,7 @@ Version #version
= The Game <the_game>

== Outline <outline>
In the Game of Intrigue, you compete against at least two other players. You draw cards and trade them with other players to gain an advantage.

The most important cards are the Standing cards. If you loose all your Standing cards you are eliminated. You can play it safe and try to stay in the game or you can take risks and try to eliminate other players.

When everyone except two players are eliminated. The player with the most valueable cards wins.

But beware! After players draw their Role cards they get powerfull abilities or goals that can even win them the game.
#outline_text

== Setup <setup>
Separate the Standing cards from the rest.\
Expand Down Expand Up @@ -479,8 +431,8 @@ Put them back in the box. They are not to be used this game anymore.
]
]
#place(
dx: 6.17em * card_example_scale,
dy: 14.9em * card_example_scale,
dx: 6.2em * card_example_scale,
dy: 14.85em * card_example_scale,
)[
#rotate(-skew_angle)[
#skew(-skew_angle)[
Expand All @@ -506,8 +458,8 @@ Put them back in the box. They are not to be used this game anymore.
]
]
#place(
dx: 6.17em * card_example_scale,
dy: 14.9em * card_example_scale,
dx: 6.2em * card_example_scale,
dy: 14.85em * card_example_scale,
)[
#rotate(-skew_angle)[
#skew(-skew_angle)[
Expand Down Expand Up @@ -544,9 +496,6 @@ Put them back in the box. They are not to be used this game anymore.
- #(defence_copy_amount * defence_values.len()) x Defence (#(calc.min(..defence_values))-#(calc.max(..defence_values)))
],
[
#let colored_card_count = player_count * ((player_count - 2) + social_cards.len())
#let non_colored_card_count = asset_copy_amount * (asset_value_range.at(1) - asset_value_range.at(0) + 1) + influence_copy_amount * (influence_value_range.at(1) - influence_value_range.at(0) + 1) + testimony_copy_amount * testimony_values.len() + rebrand_copy_amount * rebrand_values.len() + defence_copy_amount * defence_values.len()
#let card_count = colored_card_count + non_colored_card_count + player_count + role_card_amount + standing_card_amount * player_count
#text[
Color Tokens: #player_count\
Roles: #role_card_amount\
Expand Down
Loading

0 comments on commit 2bb829d

Please sign in to comment.