|
40 | 40 | ),
|
41 | 41 | },
|
42 | 42 | card_icon_map: {
|
43 |
| - // TODO: Long-duration notes are stronger versions of short-duration notes (more damage and knockback, maybe less speed). |
| 43 | + "step": CardIcon(texture: "image/card/icon/step.png"), |
| 44 | + "splits": CardIcon(texture: "image/card/icon/splits.png"), |
| 45 | + "ballet": CardIcon(texture: "image/card/icon/ballet.png"), |
| 46 | + "moonwalk": CardIcon(texture: "image/card/icon/moonwalk.png"), |
| 47 | + "cartwheel": CardIcon(texture: "image/card/icon/cartwheel.png"), |
| 48 | + |
44 | 49 | "eighth_note": CardIcon(texture: "image/card/icon/eighth_note.png"),
|
45 |
| - //"quarter_note": CardIcon(texture: "image/card/icon/quarter_note.png"), |
46 |
| - //"half_note": CardIcon(texture: "image/card/icon/half_note.png"), |
47 |
| - //"whole_note": CardIcon(texture: "image/card/icon/whole_note.png"), |
| 50 | + "quarter_note": CardIcon(texture: "image/card/icon/quarter_note.png"), |
| 51 | + "half_note": CardIcon(texture: "image/card/icon/half_note.png"), |
| 52 | + "whole_note": CardIcon(texture: "image/card/icon/whole_note.png"), |
48 | 53 | "pair": CardIcon(texture: "image/card/icon/pair.png"),
|
49 |
| - "major_chord": CardIcon(texture: "image/card/icon/major_chord.png"), |
50 |
| - "cluster_chord": CardIcon(texture: "image/card/icon/cluster_chord.png"), |
51 |
| - "rest": CardIcon(texture: "image/card/icon/rest.png"), |
| 54 | + //"triplet": CardIcon(texture: "image/card/icon/triplet.png"), |
| 55 | + "chord": CardIcon(texture: "image/card/icon/chord.png"), |
| 56 | + "cluster": CardIcon(texture: "image/card/icon/cluster.png"), |
| 57 | + |
| 58 | + "eighth_rest": CardIcon(texture: "image/card/icon/eighth_rest.png"), |
| 59 | + "quarter_rest": CardIcon(texture: "image/card/icon/quarter_rest.png"), |
| 60 | + "half_rest": CardIcon(texture: "image/card/icon/half_rest.png"), |
| 61 | + "whole_rest": CardIcon(texture: "image/card/icon/whole_rest.png"), |
| 62 | + |
52 | 63 | "sharp_flat": CardIcon(texture: "image/card/icon/sharp_flat.png"),
|
53 | 64 | "natural": CardIcon(texture: "image/card/icon/natural.png"),
|
54 | 65 | "fermata": CardIcon(texture: "image/card/icon/fermata.png"),
|
55 | 66 | "bass_clef": CardIcon(texture: "image/card/icon/bass_clef.png"),
|
56 |
| - |
57 |
| - "step": CardIcon(texture: "image/card/icon/step.png"), |
58 |
| - "splits": CardIcon(texture: "image/card/icon/splits.png"), |
59 |
| - "ballet": CardIcon(texture: "image/card/icon/ballet.png"), |
60 |
| - "moonwalk": CardIcon(texture: "image/card/icon/moonwalk.png"), |
61 | 67 | },
|
| 68 | + // TODO: Write descriptions. |
62 | 69 | card_map: {
|
63 | 70 | "step": Card(
|
64 | 71 | name: "Basic Step",
|
|
69 | 76 | // TODO: "Movement card" sfx.
|
70 | 77 | play_sfx: "audio/sfx/Projectile Hits Enemy.ogg",
|
71 | 78 | action: Step,
|
72 |
| - action_config: CardActionConfig( |
| 79 | + action_modifier: CardActionModifier( |
73 | 80 | remove_on_beat: 8,
|
74 | 81 | ),
|
75 | 82 | ),
|
76 |
| - "splits": Card( |
| 83 | + /*"splits": Card( |
77 | 84 | name: "Splits",
|
78 | 85 | description: "Split in two!",
|
79 | 86 | background: "blue",
|
80 | 87 | icon: "splits",
|
81 | 88 |
|
82 | 89 | // TODO: "Movement card" sfx.
|
83 | 90 | play_sfx: "audio/sfx/Projectile Hits Enemy.ogg",
|
84 |
| - action_config: CardActionConfig( |
| 91 | + action_modifier: CardActionModifier( |
85 | 92 | remove_on_beat: 16,
|
86 | 93 | ),
|
| 94 | + ),*/ |
| 95 | + // TODO: Add other movement cards. |
| 96 | + |
| 97 | + "eighth_note": Card( |
| 98 | + name: "Eighth Note", |
| 99 | + description: "", |
| 100 | + background: "pink", |
| 101 | + icon: "eighth_note", |
| 102 | + |
| 103 | + action: Attack, |
| 104 | + action_modifier: CardActionModifier( |
| 105 | + remove_on_beat: 0, |
| 106 | + attack: Attack(projectile: Some("eighth_note")), |
| 107 | + ), |
| 108 | + ), |
| 109 | + "quarter_note": Card( |
| 110 | + name: "Quarter Note", |
| 111 | + description: "", |
| 112 | + background: "pink", |
| 113 | + icon: "quarter_note", |
| 114 | + |
| 115 | + action: Attack, |
| 116 | + action_modifier: CardActionModifier( |
| 117 | + remove_on_beat: 0, |
| 118 | + attack: Attack(projectile: Some("quarter_note")), |
| 119 | + ), |
| 120 | + ), |
| 121 | + "half_note": Card( |
| 122 | + name: "Half Note", |
| 123 | + description: "", |
| 124 | + background: "pink", |
| 125 | + icon: "half_note", |
| 126 | + |
| 127 | + action: Attack, |
| 128 | + action_modifier: CardActionModifier( |
| 129 | + remove_on_beat: 0, |
| 130 | + attack: Attack(projectile: Some("half_note")), |
| 131 | + ), |
| 132 | + ), |
| 133 | + "whole_note": Card( |
| 134 | + name: "Whole Note", |
| 135 | + description: "", |
| 136 | + background: "pink", |
| 137 | + icon: "whole_note", |
| 138 | + |
| 139 | + action: Attack, |
| 140 | + action_modifier: CardActionModifier( |
| 141 | + remove_on_beat: 0, |
| 142 | + attack: Attack(projectile: Some("whole_note")), |
| 143 | + ), |
87 | 144 | ),
|
88 | 145 | "pair": Card(
|
89 | 146 | name: "Pair",
|
90 | 147 | description: "Two beats, rapid fire!",
|
91 | 148 | background: "pink",
|
92 | 149 | icon: "pair",
|
93 | 150 |
|
94 |
| - action: DoubleBeat, |
95 |
| - action_config: CardActionConfig( |
| 151 | + action: Attack, |
| 152 | + action_modifier: CardActionModifier( |
96 | 153 | remove_on_beat: 4,
|
97 |
| - attack: Attack ( |
98 |
| - power: 2.0, |
99 |
| - force: 4.0, |
100 |
| - projectile: Some("quarter_note"), |
101 |
| - ), |
| 154 | + attack: Attack(projectile: Some("eighth_note")), |
102 | 155 | ),
|
103 | 156 | ),
|
104 |
| - "major_chord": Card( |
| 157 | + /*"major_chord": Card( |
105 | 158 | name: "Major Chord",
|
106 |
| - description: "Notes that move apart synchronously", |
| 159 | + description: "", |
| 160 | + background: "pink", |
| 161 | + icon: "chord", |
| 162 | +
|
| 163 | + action_modifier: CardActionModifier( |
| 164 | + remove_on_beat: 16, |
| 165 | + attack: Attack(projectile: Some("eighth_note")), |
| 166 | + ), |
| 167 | + ), |
| 168 | + "cluster_chord": Card( |
| 169 | + name: "Cluster Chord", |
| 170 | + description: "", |
107 | 171 | background: "pink",
|
108 |
| - icon: "major_chord", |
| 172 | + icon: "chord", |
109 | 173 |
|
110 |
| - action_config: CardActionConfig( |
| 174 | + action_modifier: CardActionModifier( |
111 | 175 | remove_on_beat: 16,
|
| 176 | + attack: Attack(projectile: Some("whole_note")), |
112 | 177 | ),
|
| 178 | + ),*/ |
| 179 | + |
| 180 | + "eighth_rest": Card( |
| 181 | + name: "Eighth Rest", |
| 182 | + description: "Heal a little bit", |
| 183 | + background: "green", |
| 184 | + icon: "eighth_rest", |
| 185 | + |
| 186 | + action: Heal, |
| 187 | + action_modifier: CardActionModifier(heal_flat: 5), |
| 188 | + ), |
| 189 | + "quarter_rest": Card( |
| 190 | + name: "Quarter Rest", |
| 191 | + description: "Heal 25% health", |
| 192 | + background: "green", |
| 193 | + icon: "quarter_rest", |
| 194 | + |
| 195 | + action: Heal, |
| 196 | + action_modifier: CardActionModifier(heal_percent: 25), |
| 197 | + ), |
| 198 | + "half_rest": Card( |
| 199 | + name: "Half Rest", |
| 200 | + description: "Heal 50% health", |
| 201 | + background: "green", |
| 202 | + icon: "half_rest", |
| 203 | + |
| 204 | + action: Heal, |
| 205 | + action_modifier: CardActionModifier(heal_percent: 50), |
| 206 | + ), |
| 207 | + "whole_rest": Card( |
| 208 | + name: "Whole Rest", |
| 209 | + description: "Heal 100% health", |
| 210 | + background: "green", |
| 211 | + icon: "whole_rest", |
| 212 | + |
| 213 | + action: Heal, |
| 214 | + action_modifier: CardActionModifier(heal_percent: 100), |
113 | 215 | ),
|
114 | 216 | }
|
115 | 217 | )
|
0 commit comments