Skip to content

Commit

Permalink
Explain what cards do in their descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Aug 21, 2024
1 parent 56178f6 commit 3d378d0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
45 changes: 24 additions & 21 deletions assets/config/card.ron
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
"fermata": CardIcon(texture: "image/card/icon/fermata.png"),
"bass_clef": CardIcon(texture: "image/card/icon/bass_clef.png"),
},
// TODO: Write descriptions.
// TODO: "contact damage" -> something more thematic?
card_map: {
"step": Card(
name: "Simple Step",
description: "Fancy footwork starts here.",
description: "Step forwards for 8 contact damage.\n\n\"fancy footwork starts here\"",
background: "blue",
icon: "step",
max_level: 4,
Expand All @@ -89,7 +89,7 @@
// TODO: This would fit better as Breakdance if I could draw the icon for it :zany_face:
"splits": Card(
name: "Splits",
description: "Can a blobo do the splits?",
description: "Duck in place for 45 contact damage.\n\n\"can a blobo do the splits?\"",
background: "blue",
icon: "splits",
weight: 0.3,
Expand All @@ -106,7 +106,7 @@
),
"ballet": Card(
name: "Pirouette",
description: "This card is pirouette good.",
description: "Leap forwards for 12 contact damage.\n\n\"this card is pirouette good\"",
background: "blue",
icon: "ballet",
min_level: 3,
Expand All @@ -124,7 +124,7 @@
),
"cartwheel": Card(
name: "Cartwheel",
description: "Round and round, let the city turn!",
description: "Flip to the left for 40 contact damage.\n\n\"round and round, let the city turn!\"",
background: "blue",
icon: "cartwheel",
min_level: 5,
Expand All @@ -142,7 +142,8 @@
),
"moonwalk": Card(
name: "Moonwalk",
description: "That's one small step for man...",
description: "Slide backwards for 60 contact damage.\n\n\"that's one small step for man...\"",
// vscode-ron syntax highlighting breaks without this: '
background: "blue",
icon: "moonwalk",
min_level: 7,
Expand All @@ -160,7 +161,7 @@

"eighth_note": Card(
name: "Eighth Note",
description: "",
description: "Sing an eighth note.",
background: "pink",
icon: "eighth_note",
max_level: 2,
Expand All @@ -173,7 +174,7 @@
),
"quarter_note": Card(
name: "Quarter Note",
description: "",
description: "Sing a quarter note.",
background: "pink",
icon: "quarter_note",
max_level: 4,
Expand All @@ -186,7 +187,7 @@
),
"half_note": Card(
name: "Half Note",
description: "",
description: "Sing a half note.",
background: "pink",
icon: "half_note",
min_level: 2,
Expand All @@ -200,7 +201,7 @@
),
"whole_note": Card(
name: "Whole Note",
description: "",
description: "Sing a whole note.",
background: "pink",
icon: "whole_note",
min_level: 4,
Expand All @@ -213,7 +214,7 @@
),
"pair": Card(
name: "Pair",
description: "Two beats, rapid fire!",
description: "Sing a pair of eighth notes.\n\n\"two beats, rapid fire!\"",
background: "pink",
icon: "pair",
max_level: 4,
Expand All @@ -227,7 +228,7 @@
),
"triplet": Card(
name: "Triplet",
description: "... Three beats, rapid fire!",
description: "Sing a triplet of eighth notes.\n\n\"...three beats, rapid fire!\"",
background: "pink",
icon: "triplet",
max_level: 4,
Expand All @@ -242,7 +243,8 @@
),
"cacophony": Card(
name: "Cacophony",
description: "How's my volume?",
description: "Sing a whole bunch of eighth notes.\n\n\"how's my volume?\"",
// vscode-ron syntax highlighting breaks without this: '
background: "pink",
icon: "cacophony",
min_level: 4,
Expand All @@ -261,7 +263,7 @@
),
"major_chord": Card(
name: "Major Chord",
description: "This card strikes a major chord :)",
description: "Sing a triad of whole notes.\n\n\"this card strikes a major chord :)\"",
background: "pink",
icon: "chord",
min_level: 6,
Expand All @@ -277,7 +279,8 @@
),
"cluster_chord": Card(
name: "Cluster Chord",
description: "It's getting a little clusterphobic in here.",
description: "Sing a tetrad of whole notes.\n\n\"it's getting clusterphobic in here...\"",
// vscode-ron syntax highlighting breaks without this: '
background: "pink",
icon: "cluster",
min_level: 8,
Expand All @@ -295,29 +298,29 @@

"eighth_rest": Card(
name: "Eighth Rest",
description: "Heal a little bit",
description: "Heal a little bit.",
background: "green",
icon: "eighth_rest",
max_level: 4,

action: Heal,
action_modifier: CardActionModifier(heal_flat: 5, immunity: 0.7),
action_modifier: CardActionModifier(heal_flat: 10, immunity: 0.7),
),
"quarter_rest": Card(
name: "Quarter Rest",
description: "Heal a decent amount",
description: "Heal a good amount.",
background: "green",
icon: "quarter_rest",
min_level: 4,
max_level: 8,
weight: 0.7,

action: Heal,
action_modifier: CardActionModifier(heal_flat: 25, immunity: 0.8),
action_modifier: CardActionModifier(heal_flat: 30, immunity: 0.8),
),
"half_rest": Card(
name: "Half Rest",
description: "Heal 25% health",
description: "Heal for 25%.",
background: "green",
icon: "half_rest",
min_level: 6,
Expand All @@ -329,7 +332,7 @@
),
"whole_rest": Card(
name: "Whole Rest",
description: "Heal 50% health",
description: "Heal for 50%.",
background: "green",
icon: "whole_rest",
min_level: 8,
Expand Down
1 change: 0 additions & 1 deletion src/ui/tooltip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ pub(super) fn plugin(app: &mut App) {
NodeBundle {
style: Style {
position_type: PositionType::Absolute,
max_width: Vw(40.0),
padding: UiRect::all(Px(8.0)),
..default()
},
Expand Down

0 comments on commit 3d378d0

Please sign in to comment.