Просмотр исходного кода

Merge 2048 from https://github.com/xMasterX/all-the-plugins

Willy-JL 2 лет назад
Родитель
Сommit
823b2c6a0d
5 измененных файлов с 12 добавлено и 3 удалено
  1. 7 0
      2048/README-catalog.md
  2. 4 2
      2048/application.fam
  3. 1 1
      2048/game_2048.c
  4. BIN
      2048/img/1.png
  5. BIN
      2048/img/2.png

+ 7 - 0
2048/README-catalog.md

@@ -0,0 +1,7 @@
+In this classic game, your objective is to collect the highest number of points by connecting identical numbers on the playing field.
+
+You can control the game using the Up, Down, Right, and Left buttons, which allow you to move all cells on the playing field simultaneously.
+
+Whenever you merge two identical numbers, their value doubles. For instance, combining 2 and 2 results in 4.
+
+The game ends when no further moves are possible. Exiting the game will save the current state of the game board.

+ 4 - 2
2048/application.fam

@@ -3,12 +3,14 @@ App(
     name="2048",
     apptype=FlipperAppType.EXTERNAL,
     entry_point="game_2048_app",
-    cdefines=["APP_GAME_2048"],
     requires=[
         "gui",
     ],
     stack_size=1 * 1024,
     order=90,
 	fap_icon="game_2048.png",
-    fap_category="Games"
+    fap_category="Games",
+    fap_author="@eugene-kirzhanov",
+    fap_version="1.2",
+    fap_description="Play the port of the 2048 game on Flipper Zero.",
 )

+ 1 - 1
2048/game_2048.c

@@ -489,8 +489,8 @@ int32_t game_2048_app() {
                 }
             }
 
-            view_port_update(view_port);
             furi_mutex_release(game_state->mutex);
+            view_port_update(view_port);
         }
     }
 

BIN
2048/img/1.png


BIN
2048/img/2.png