summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Twos.h
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-03-24 07:12:30 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-03-24 10:22:19 (GMT)
commit1bc6ab30000a735600bde31e6268e48f6e986948 (patch)
tree4180ee642655655b07bc5d9a228bc7a020115538 /src/displayapp/screens/Twos.h
parenta5af528d64429f23c6a6de91e660a19ed19e19c5 (diff)
sans music navigation metronome twos
Diffstat (limited to 'src/displayapp/screens/Twos.h')
-rw-r--r--src/displayapp/screens/Twos.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/displayapp/screens/Twos.h b/src/displayapp/screens/Twos.h
deleted file mode 100644
index 5a0c435..0000000
--- a/src/displayapp/screens/Twos.h
+++ /dev/null
@@ -1,38 +0,0 @@
-#pragma once
-
-#include <lvgl/src/lv_core/lv_obj.h>
-#include "displayapp/screens/Screen.h"
-
-namespace Pinetime {
- namespace Applications {
- struct TwosTile {
- bool merged = false;
- unsigned int value = 0;
- };
- namespace Screens {
- class Twos : public Screen {
- public:
- Twos(DisplayApp* app);
- ~Twos() override;
-
- bool OnTouchEvent(TouchEvents event) override;
-
- private:
- lv_style_t style_cell1;
- lv_style_t style_cell2;
- lv_style_t style_cell3;
- lv_style_t style_cell4;
- lv_style_t style_cell5;
-
- lv_obj_t* scoreText;
- lv_obj_t* gridDisplay;
- TwosTile grid[4][4];
- unsigned int score = 0;
- void updateGridDisplay(TwosTile grid[][4]);
- bool tryMerge(TwosTile grid[][4], int& newRow, int& newCol, int oldRow, int oldCol);
- bool tryMove(TwosTile grid[][4], int newRow, int newCol, int oldRow, int oldCol);
- bool placeNewTile();
- };
- }
- }
-}