mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 09:28:36 -07:00
Update apps
This commit is contained in:
@@ -5,7 +5,6 @@ App(
|
||||
entry_point="tetris_game_app",
|
||||
requires=["gui"],
|
||||
stack_size=2 * 1024,
|
||||
order=240,
|
||||
fap_icon="tetris_10px.png",
|
||||
fap_category="Games",
|
||||
fap_author="@xMasterX & @jeffplang",
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <string.h>
|
||||
#include <furi_hal_resources.h>
|
||||
#include <furi_hal_gpio.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#define BORDER_OFFSET 1
|
||||
#define MARGIN_OFFSET 3
|
||||
@@ -387,6 +388,9 @@ int32_t tetris_game_app() {
|
||||
Piece* newPiece = malloc(sizeof(Piece));
|
||||
uint8_t downRepeatCounter = 0;
|
||||
|
||||
// Call dolphin deed on game start
|
||||
dolphin_deed(DolphinDeedPluginGameStart);
|
||||
|
||||
for(bool processing = true; processing;) {
|
||||
// This 10U implicitly sets the game loop speed. downRepeatCounter relies on this value
|
||||
FuriStatus event_status = furi_message_queue_get(event_queue, &event, 10U);
|
||||
@@ -473,4 +477,4 @@ int32_t tetris_game_app() {
|
||||
free(tetris_state);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user