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="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)",

View File

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