mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 03:08:35 -07:00
Update apps
This commit is contained in:
@@ -7,7 +7,6 @@ App(
|
||||
"gui",
|
||||
],
|
||||
stack_size=1 * 1024,
|
||||
order=90,
|
||||
fap_icon="bomb.png",
|
||||
fap_category="Games",
|
||||
fap_icon_assets="assets",
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
#include <notification/notification.h>
|
||||
#include <notification/notification_messages.h>
|
||||
#include "bomberduck_icons.h"
|
||||
#include <assets_icons.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
int max(int a, int b) {
|
||||
return (a > b) ? a : b;
|
||||
@@ -381,6 +383,7 @@ int32_t bomberduck_app(void* p) {
|
||||
return 255;
|
||||
}
|
||||
|
||||
dolphin_deed(DolphinDeedPluginGameStart);
|
||||
// Создаем новый view port
|
||||
ViewPort* view_port = view_port_alloc();
|
||||
// Создаем callback отрисовки, без контекста
|
||||
@@ -454,8 +457,9 @@ int32_t bomberduck_app(void* p) {
|
||||
notification_message(notification, &end);
|
||||
world.running = 0;
|
||||
world.level += 1;
|
||||
// if(world.level % 5 == 0) {
|
||||
// }
|
||||
if(world.level % 5 == 0) {
|
||||
dolphin_deed(DolphinDeedPluginGameWin);
|
||||
}
|
||||
}
|
||||
for(int i = 0; i < world.bombs_count; i++) {
|
||||
if(furi_get_tick() - world.bombs[i].planted >
|
||||
|
||||
Reference in New Issue
Block a user