Update apps

This commit is contained in:
Willy-JL
2023-08-30 18:59:32 +02:00
parent 160ab755a2
commit ee37769ee2
308 changed files with 2314 additions and 801 deletions

View File

@@ -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",

View File

@@ -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;
}
}