Skip to content

Commit 2765ddd

Browse files
committed
format code, change version
1 parent 7fdde61 commit 2765ddd

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.github/workflows/upload-to-itch.yml

Whitespace-only changes.

application.fam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ App(
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",

docs/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v1.2
2+
3+
- fix scores on the start
4+
- change app icon
5+
- change start app logo
6+
17
## v1.1
28

39
First release to Application Catalog

flipper_hero.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
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

0 commit comments

Comments
 (0)