ソースを参照

Adds empty app and icon.

Denis Nelubin 3 年 前
コミット
6f0c4b05b7
5 ファイル変更41 行追加0 行削除
  1. 1 0
      .gitignore
  2. 17 0
      README.md
  3. 12 0
      application.fam
  4. 11 0
      trexrunner.c
  5. BIN
      trexrunner_icon.png

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/.idea/

+ 17 - 0
README.md

@@ -1,2 +1,19 @@
 # t-rex-runner
 Flipper Zero port of Chrome's running T-rex game
+
+## Compiling
+
+You need a full source of the [Flipper Zero firmware](https://github.com/flipperdevices/flipperzero-firmware/tree/release),
+take the `release` branch to build for the stable release.
+
+Copy or symlink this folder as `flipperzero-firmware/applications_user/t-rex-runner`.
+
+Run the build from the root of the firmware folder:
+```
+./fbt firmware_t-rex-runner
+```
+
+If you have Flipper Zero attached to USB, you can immediately compile and run the app on device:
+```
+./fbt launch_app APPSRC=applications_user/t-rex-runner
+```

+ 12 - 0
application.fam

@@ -0,0 +1,12 @@
+App(
+    appid="t-rex-runner",
+    name="T-Rex runner",
+    apptype=FlipperAppType.EXTERNAL,
+    entry_point="trexrunner_app",
+    cdefines=["APP_TREXRUNNER"],
+    requires=["gui"],
+    stack_size=8 * 1024,
+    fap_category="Games",
+    fap_icon="trexrunner_icon.png",
+    order=36,
+)

+ 11 - 0
trexrunner.c

@@ -0,0 +1,11 @@
+#include <furi.h>
+#include <furi_hal.h>
+#include <gui/gui.h>
+#include <input/input.h>
+#include <stdlib.h>
+
+int32_t trexrunner_app(void* p) {
+  UNUSED(p);
+
+  return 0;
+}

BIN
trexrunner_icon.png