File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed
Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 99 ],
1010 stack_size=1 * 1024,
1111 order=10,
12- fap_version="1.1 ",
12+ fap_version="1.2 ",
1313 fap_icon="icons/hex_10px.png",
1414 fap_icon_assets="icons",
1515 fap_category="Games",
Original file line number Diff line number Diff line change 1+ ## v1.2
2+
3+ - fix scores on the start
4+ - change app icon
5+ - change start app logo
6+
17## v1.1
28
39First release to Application Catalog
Original file line number Diff line number Diff line change 1010#define SCORE_MULTIPLIER 5
1111#define TIMER_INCREMENT_PER_ARROW 25
1212
13- void generate_arrows (PluginState * plugin_state ) {
14- // Increment timer and score based on the number of arrows
13+ void add_scores (PluginState * plugin_state ) {
1514 plugin_state -> timer += TIMER_INCREMENT_PER_ARROW * plugin_state -> numArrows ;
1615 plugin_state -> score += plugin_state -> numArrows * SCORE_MULTIPLIER ;
1716 plugin_state -> round ++ ;
18-
17+ }
18+ void generate_arrows (PluginState * plugin_state ) {
1919 // Generate a new set of arrows, 3 to 8
2020 plugin_state -> numArrows = rand () % (MAX_ARROWS - MIN_ARROWS + 1 ) + MIN_ARROWS ;
2121
@@ -263,6 +263,7 @@ int32_t flipper_hero_app() {
263263
264264 // Check if all arrows are filled, then regenerate
265265 if (plugin_state -> nextArrowToFill >= plugin_state -> numArrows ) {
266+ add_scores (plugin_state );
266267 generate_arrows (plugin_state ); // Re-initialize arrow states
267268 }
268269
You can’t perform that action at this time.
0 commit comments