Skip to content

Commit 9713d22

Browse files
committed
Squashed 'minesweeper/' changes from 34b645c..1a74ea2
1a74ea2 fix catalog versions 6a1c99d combine 1 0cd31f9 move base pack here REVERT: 34b645c Merge pull request #7 from gelin/fix-v0.72.1 REVERT: 94924fa fix build for firmware v0.72.1 REVERT: bb6e54c fix data type REVERT: cf138cd cursor wraps around REVERT: dc2c8d5 cleanup REVERT: addd984 Merge pull request #3 from panki27/flagsbased-uncover REVERT: d63dce1 update README REVERT: d1bcb7d comments, minor cleanup REVERT: c5d9360 Merge branch 'master' into flagsbased-uncover REVERT: a9d6011 fix double freeing of furi string REVERT: bf8c7f5 add missing return? REVERT: 1839389 Merge branch 'master' of https://github.com/gelin/minesweeper into gelin-master REVERT: 5f23b4b Merge pull request #1 from Alejandro12120/master REVERT: eab0d71 fix cases when mine is got when auto uncovering and some others REVERT: 94aaa1e add auto uncover cells on second click to the cell with number, as it's done by left-right click on desktop minesweeper REVERT: eafcf9f Update minesweeper.c REVERT: 7968213 updated to furistring REVERT: da675b9 remove crash warning, add my github REVERT: 87de8d9 vibration now fixed :) REVERT: 5dbbd04 some sanity checks... theres a bug with spammed inputs :( REVERT: f951a55 icon REVERT: 45ff8cd update screenshot REVERT: 4426c01 show time in win dialog REVERT: 4e7970f timer REVERT: ed92ecd show mines left REVERT: fd345bd LICENSE REVERT: 014971c README REVERT: 1e36565 game over + win screen REVERT: 7e56f35 fix flag REVERT: 69d2ef1 vibrate on hitting mine, fix empty cell graphic REVERT: 1171f95 rework assets REVERT: e92122a flag placement REVERT: ff45866 working uncovering, auto uncover REVERT: b0615c8 minefield generation REVERT: b3ec5e7 moving cursor REVERT: b8aa5fe initial commit, drawing cells git-subtree-dir: minesweeper git-subtree-split: 1a74ea2
1 parent 34b645c commit 9713d22

File tree

6 files changed

+520
-411
lines changed

6 files changed

+520
-411
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Minesweeper
22

3+
[Original Link](https://github.com/panki27/minesweeper)
4+
35
This is a Minesweeper implementation for the Flipper Zero device.
46

57
![screenshot](img/screenshot.png)

application.fam

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
App(
22
appid="minesweeper",
33
name="Minesweeper",
4-
apptype=FlipperAppType.PLUGIN,
4+
apptype=FlipperAppType.EXTERNAL,
55
entry_point="minesweeper_app",
6-
cdefines=["APP_MINESWEEPER"],
76
requires=["gui"],
87
stack_size=8 * 1024,
98
fap_category="Games",
109
fap_icon="minesweeper_icon.png",
1110
order=35,
11+
fap_author="@panki27 & @xMasterX",
12+
fap_version="1.1",
13+
fap_description="Minesweeper Game",
1214
)

assets.h

+108-12
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,144 @@
11
#define tile_0_width 8
22
#define tile_0_height 8
33
static uint8_t tile_0_bits[] = {
4-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, };
4+
0x00,
5+
0x00,
6+
0x00,
7+
0x00,
8+
0x00,
9+
0x00,
10+
0x00,
11+
0x00,
12+
};
513
#define tile_1_width 8
614
#define tile_1_height 8
715
static uint8_t tile_1_bits[] = {
8-
0x00, 0x10, 0x18, 0x10, 0x10, 0x10, 0x10, 0x00, };
16+
0x00,
17+
0x10,
18+
0x18,
19+
0x10,
20+
0x10,
21+
0x10,
22+
0x10,
23+
0x00,
24+
};
925
#define tile_2_width 8
1026
#define tile_2_height 8
1127
static uint8_t tile_2_bits[] = {
12-
0x00, 0x1C, 0x20, 0x20, 0x18, 0x04, 0x3C, 0x00, };
28+
0x00,
29+
0x1C,
30+
0x20,
31+
0x20,
32+
0x18,
33+
0x04,
34+
0x3C,
35+
0x00,
36+
};
1337
#define tile_3_width 8
1438
#define tile_3_height 8
1539
static uint8_t tile_3_bits[] = {
16-
0x00, 0x1C, 0x20, 0x20, 0x18, 0x20, 0x1C, 0x00, };
40+
0x00,
41+
0x1C,
42+
0x20,
43+
0x20,
44+
0x18,
45+
0x20,
46+
0x1C,
47+
0x00,
48+
};
1749
#define tile_4_width 8
1850
#define tile_4_height 8
1951
static uint8_t tile_4_bits[] = {
20-
0x00, 0x04, 0x14, 0x14, 0x3C, 0x10, 0x10, 0x00, };
52+
0x00,
53+
0x04,
54+
0x14,
55+
0x14,
56+
0x3C,
57+
0x10,
58+
0x10,
59+
0x00,
60+
};
2161
#define tile_5_width 8
2262
#define tile_5_height 8
2363
static uint8_t tile_5_bits[] = {
24-
0x00, 0x3C, 0x04, 0x1C, 0x20, 0x20, 0x1C, 0x00, };
64+
0x00,
65+
0x3C,
66+
0x04,
67+
0x1C,
68+
0x20,
69+
0x20,
70+
0x1C,
71+
0x00,
72+
};
2573
#define tile_6_width 8
2674
#define tile_6_height 8
2775
static uint8_t tile_6_bits[] = {
28-
0x00, 0x18, 0x24, 0x04, 0x1C, 0x24, 0x18, 0x00, };
76+
0x00,
77+
0x18,
78+
0x24,
79+
0x04,
80+
0x1C,
81+
0x24,
82+
0x18,
83+
0x00,
84+
};
2985
#define tile_7_width 8
3086
#define tile_7_height 8
3187
static uint8_t tile_7_bits[] = {
32-
0x00, 0x3C, 0x20, 0x20, 0x10, 0x08, 0x08, 0x00, };
88+
0x00,
89+
0x3C,
90+
0x20,
91+
0x20,
92+
0x10,
93+
0x08,
94+
0x08,
95+
0x00,
96+
};
3397
#define tile_8_width 8
3498
#define tile_8_height 8
3599
static uint8_t tile_8_bits[] = {
36-
0x00, 0x18, 0x24, 0x18, 0x24, 0x24, 0x18, 0x00, };
100+
0x00,
101+
0x18,
102+
0x24,
103+
0x18,
104+
0x24,
105+
0x24,
106+
0x18,
107+
0x00,
108+
};
37109
#define tile_flag_width 8
38110
#define tile_flag_height 8
39111
static uint8_t tile_flag_bits[] = {
40-
0xFF, 0x81, 0xB9, 0x89, 0x89, 0x9D, 0x81, 0xFF, };
112+
0xFF,
113+
0x81,
114+
0xB9,
115+
0x89,
116+
0x89,
117+
0x9D,
118+
0x81,
119+
0xFF,
120+
};
41121
#define tile_mine_width 8
42122
#define tile_mine_height 8
43123
static uint8_t tile_mine_bits[] = {
44-
0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, };
124+
0x55,
125+
0xAA,
126+
0x55,
127+
0xAA,
128+
0x55,
129+
0xAA,
130+
0x55,
131+
0xAA,
132+
};
45133
#define tile_uncleared_width 8
46134
#define tile_uncleared_height 8
47135
static uint8_t tile_uncleared_bits[] = {
48-
0xFF, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0xFF, };
136+
0xFF,
137+
0x81,
138+
0x81,
139+
0x81,
140+
0x81,
141+
0x81,
142+
0x81,
143+
0xFF,
144+
};

img/1.png

1.86 KB
Loading

img/2.png

1.61 KB
Loading

0 commit comments

Comments
 (0)