From 7d2fe207529c13493e8739c327863f08efc0a994 Mon Sep 17 00:00:00 2001 From: RocketGod <57732082+RocketGod-git@users.noreply.github.com> Date: Sat, 24 Aug 2024 08:13:39 -0700 Subject: [PATCH] Add beep when firing laser --- fap/laser_tag.fap | Bin 17424 -> 17656 bytes laser_tag_app.c | 6 +++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fap/laser_tag.fap b/fap/laser_tag.fap index a25bd3ea11955d16dec8945d0d1639338c4c2042..359cd22456b2c6200c27f6edbdd0879fedd5d344 100644 GIT binary patch delta 5376 zcmZ8l3vgA{72WqH4+u9m?}elg6wQl7J_=1}!zU^g5;X?F@k3|SqA{2Zp$3TZ>Z+_P_EgEP3_sG#A1)~zY6!JrOmg7lIBeccTM7e1hi-JWSsze%CQK+&VfOtz20Z zU0t*4{#bNrb#-0G$?@Y{(-QX0;D!5g_7u-0e%PFLl1G^JRlC^}aOv zveTC~U)p`y@5^CdI(_-fm*c*4`7)3pgBkK;hDcaa!;&7BY;)w|&8c-^*==sjjXC?w zN4e!rk@2G!I48}N=uD^I+!dYVOfZ|GmuG$*7IDz#+eXP_#J%Q7^fG6PITI~&wwa>5 z+0Lb=HgA@5(7c-WWIX1H8+r3LSt-c5&XZnGTKz=1)6lSdy(f>++K3S(--r^|Jh`-p zaszC{SMU(~G;fRM?N|G+VWf|xlag0B&I2i7p}Znb5q?U*ldw>YxnG>vC6#N9G> zUn}Lako_f{Pg5Qh7Wb*?kA6!z0{P!XWBVxQKweWY^Iw#skVhYDI!L(|@^`yFeu{Do z^5Vbcxs=z16GQd2k97sUAuL^C)L(VvcnR(GYX1l9~a`54Rnzp7tM+8vgwB8gf~fim|rM=zPRmPum7cB-Ni*nw?rKkGDNMb)WL*8Nl$$)WJ$!LTZT|k0IM%%;C-BZCl1PqV zKDZIibC&%viPMhFao$e;|MDq8c`lGG~w|`~v#-AnI<07lZCM!hV zwfODhhTFfh`0SkF_Icxn^G_^ZctMh#Lwd%%ds#fr#l*46#L4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FL=<`m@6{XJzJ2OGJsmX L3;9UG8hGjdq90MZ diff --git a/laser_tag_app.c b/laser_tag_app.c index cebe5fa6990..430a93b1692 100644 --- a/laser_tag_app.c +++ b/laser_tag_app.c @@ -23,6 +23,8 @@ struct LaserTagApp { }; const NotificationSequence sequence_vibro_1 = {&message_vibro_on, &message_vibro_off, NULL}; +const NotificationSequence sequence_short_beep = + {&message_note_c4, &message_delay_50, &message_sound_off, NULL}; static void laser_tag_app_timer_callback(void* context) { furi_assert(context); @@ -203,9 +205,11 @@ void laser_tag_app_fire(LaserTagApp* app) { FURI_LOG_D(TAG, "Laser fired, decreasing ammo by 1"); game_state_decrease_ammo(app->game_state, 1); + notification_message(app->notifications, &sequence_short_beep); + notification_message(app->notifications, &sequence_blink_blue_100); - FURI_LOG_I(TAG, "Notifying user with blink blue"); + FURI_LOG_I(TAG, "Notifying user with blink blue and short beep"); app->need_redraw = true; }