mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 18:38:36 -07:00
Update apps
This commit is contained in:
@@ -5,7 +5,6 @@ App(
|
||||
entry_point="zombiez_game_app",
|
||||
requires=["gui"],
|
||||
stack_size=2 * 1024,
|
||||
order=280,
|
||||
fap_icon="zombie_10px.png",
|
||||
fap_category="Games",
|
||||
fap_author="@DevMilanIan & @xMasterX, (original By @Dooskington)",
|
||||
|
||||
8
applications/external/zombiez/zombiez.c
vendored
8
applications/external/zombiez/zombiez.c
vendored
@@ -2,6 +2,7 @@
|
||||
#include <gui/gui.h>
|
||||
#include <input/input.h>
|
||||
#include <stdlib.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
//ORIGINAL REPO: https://github.com/Dooskington/flipperzero-zombiez
|
||||
//AUTHORS: https://github.com/Dooskington | https://github.com/DevMilanIan
|
||||
@@ -231,6 +232,8 @@ static void tick(PluginState* const plugin_state) {
|
||||
free(z);
|
||||
plugin_state->zombies[i] = NULL;
|
||||
plugin_state->score++;
|
||||
//if(plugin_state->score % 15 == 0) dolphin_deed(getRandomDeed());
|
||||
//}
|
||||
} else if(z->position.x <= WALL_X && z->position.x > 0) { // zombie got to the wall
|
||||
plugin_state->zombies_count -= 1;
|
||||
free(z);
|
||||
@@ -311,6 +314,9 @@ int32_t zombiez_game_app(void* p) {
|
||||
Gui* gui = furi_record_open(RECORD_GUI);
|
||||
gui_add_view_port(gui, view_port, GuiLayerFullscreen);
|
||||
|
||||
// Call dolphin deed on game start
|
||||
dolphin_deed(DolphinDeedPluginGameStart);
|
||||
|
||||
PluginEvent event;
|
||||
bool isRunning = true;
|
||||
while(isRunning) {
|
||||
@@ -393,4 +399,4 @@ free_and_exit:
|
||||
furi_message_queue_free(event_queue);
|
||||
|
||||
return return_code;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user