Skip to content

Commit 0cd31f9

Browse files
committed
move base pack here
0 parents  commit 0cd31f9

34 files changed

+1463
-0
lines changed

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minesweeper
2+
3+
[Original Link](https://github.com/panki27/minesweeper)
4+
5+
This is a Minesweeper implementation for the Flipper Zero device.
6+
7+
![screenshot](img/screenshot.png)
8+
9+
## Controls
10+
11+
- Arrow buttons to move
12+
- Push center button to open field
13+
- Hold center button to toggle flag
14+
- Push center button on an already open field that has the correct amount of flags surrounding it to auto-open the remaining ones (thanks @gelin!)
15+
16+
## Compiling
17+
18+
```
19+
./fbt firmware_minesweeper
20+
```

application.fam

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
App(
2+
appid="minesweeper",
3+
name="Minesweeper",
4+
apptype=FlipperAppType.EXTERNAL,
5+
entry_point="minesweeper_app",
6+
requires=["gui"],
7+
stack_size=8 * 1024,
8+
fap_category="Games",
9+
fap_icon="minesweeper_icon.png",
10+
order=35,
11+
fap_author="@panki27 & @xMasterX",
12+
fap_version="1.0",
13+
fap_description="Minesweeper Game",
14+
)

assets.h

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
#define tile_0_width 8
2+
#define tile_0_height 8
3+
static uint8_t tile_0_bits[] = {
4+
0x00,
5+
0x00,
6+
0x00,
7+
0x00,
8+
0x00,
9+
0x00,
10+
0x00,
11+
0x00,
12+
};
13+
#define tile_1_width 8
14+
#define tile_1_height 8
15+
static uint8_t tile_1_bits[] = {
16+
0x00,
17+
0x10,
18+
0x18,
19+
0x10,
20+
0x10,
21+
0x10,
22+
0x10,
23+
0x00,
24+
};
25+
#define tile_2_width 8
26+
#define tile_2_height 8
27+
static uint8_t tile_2_bits[] = {
28+
0x00,
29+
0x1C,
30+
0x20,
31+
0x20,
32+
0x18,
33+
0x04,
34+
0x3C,
35+
0x00,
36+
};
37+
#define tile_3_width 8
38+
#define tile_3_height 8
39+
static uint8_t tile_3_bits[] = {
40+
0x00,
41+
0x1C,
42+
0x20,
43+
0x20,
44+
0x18,
45+
0x20,
46+
0x1C,
47+
0x00,
48+
};
49+
#define tile_4_width 8
50+
#define tile_4_height 8
51+
static uint8_t tile_4_bits[] = {
52+
0x00,
53+
0x04,
54+
0x14,
55+
0x14,
56+
0x3C,
57+
0x10,
58+
0x10,
59+
0x00,
60+
};
61+
#define tile_5_width 8
62+
#define tile_5_height 8
63+
static uint8_t tile_5_bits[] = {
64+
0x00,
65+
0x3C,
66+
0x04,
67+
0x1C,
68+
0x20,
69+
0x20,
70+
0x1C,
71+
0x00,
72+
};
73+
#define tile_6_width 8
74+
#define tile_6_height 8
75+
static uint8_t tile_6_bits[] = {
76+
0x00,
77+
0x18,
78+
0x24,
79+
0x04,
80+
0x1C,
81+
0x24,
82+
0x18,
83+
0x00,
84+
};
85+
#define tile_7_width 8
86+
#define tile_7_height 8
87+
static uint8_t tile_7_bits[] = {
88+
0x00,
89+
0x3C,
90+
0x20,
91+
0x20,
92+
0x10,
93+
0x08,
94+
0x08,
95+
0x00,
96+
};
97+
#define tile_8_width 8
98+
#define tile_8_height 8
99+
static uint8_t tile_8_bits[] = {
100+
0x00,
101+
0x18,
102+
0x24,
103+
0x18,
104+
0x24,
105+
0x24,
106+
0x18,
107+
0x00,
108+
};
109+
#define tile_flag_width 8
110+
#define tile_flag_height 8
111+
static uint8_t tile_flag_bits[] = {
112+
0xFF,
113+
0x81,
114+
0xB9,
115+
0x89,
116+
0x89,
117+
0x9D,
118+
0x81,
119+
0xFF,
120+
};
121+
#define tile_mine_width 8
122+
#define tile_mine_height 8
123+
static uint8_t tile_mine_bits[] = {
124+
0x55,
125+
0xAA,
126+
0x55,
127+
0xAA,
128+
0x55,
129+
0xAA,
130+
0x55,
131+
0xAA,
132+
};
133+
#define tile_uncleared_width 8
134+
#define tile_uncleared_height 8
135+
static uint8_t tile_uncleared_bits[] = {
136+
0xFF,
137+
0x81,
138+
0x81,
139+
0x81,
140+
0x81,
141+
0x81,
142+
0x81,
143+
0xFF,
144+
};

assets/asset

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#define tile_0_width 8
2+
#define tile_0_height 8
3+
static uint8_t tile_0_bits[] = {
4+
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, };
5+
#define tile_1_width 8
6+
#define tile_1_height 8
7+
static uint8_t tile_1_bits[] = {
8+
0x00, 0x10, 0x18, 0x10, 0x10, 0x10, 0x10, 0x00, };
9+
#define tile_2_width 8
10+
#define tile_2_height 8
11+
static uint8_t tile_2_bits[] = {
12+
0x00, 0x1C, 0x20, 0x20, 0x18, 0x04, 0x3C, 0x00, };
13+
#define tile_3_width 8
14+
#define tile_3_height 8
15+
static uint8_t tile_3_bits[] = {
16+
0x00, 0x1C, 0x20, 0x20, 0x18, 0x20, 0x1C, 0x00, };
17+
#define tile_4_width 8
18+
#define tile_4_height 8
19+
static uint8_t tile_4_bits[] = {
20+
0x00, 0x04, 0x14, 0x14, 0x3C, 0x10, 0x10, 0x00, };
21+
#define tile_5_width 8
22+
#define tile_5_height 8
23+
static uint8_t tile_5_bits[] = {
24+
0x00, 0x3C, 0x04, 0x1C, 0x20, 0x20, 0x1C, 0x00, };
25+
#define tile_6_width 8
26+
#define tile_6_height 8
27+
static uint8_t tile_6_bits[] = {
28+
0x00, 0x18, 0x24, 0x04, 0x1C, 0x24, 0x18, 0x00, };
29+
#define tile_7_width 8
30+
#define tile_7_height 8
31+
static uint8_t tile_7_bits[] = {
32+
0x00, 0x3C, 0x20, 0x20, 0x10, 0x08, 0x08, 0x00, };
33+
#define tile_8_width 8
34+
#define tile_8_height 8
35+
static uint8_t tile_8_bits[] = {
36+
0x00, 0x18, 0x24, 0x18, 0x24, 0x24, 0x18, 0x00, };
37+
#define tile_flag_width 8
38+
#define tile_flag_height 8
39+
static uint8_t tile_flag_bits[] = {
40+
0xFF, 0x81, 0xB9, 0x89, 0x89, 0x9D, 0x81, 0xFF, };
41+
#define tile_mine_width 8
42+
#define tile_mine_height 8
43+
static uint8_t tile_mine_bits[] = {
44+
0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, };
45+
#define tile_uncleared_width 8
46+
#define tile_uncleared_height 8
47+
static uint8_t tile_uncleared_bits[] = {
48+
0xFF, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0xFF, };

assets/mockup.png

400 Bytes
Loading

assets/tile_0.png

130 Bytes
Loading

assets/tile_0.xbm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#define tile_0_width 8
2+
#define tile_0_height 8
3+
static char tile_0_bits[] = {
4+
0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, };

assets/tile_1.png

152 Bytes
Loading

assets/tile_1.xbm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#define tile_1_width 8
2+
#define tile_1_height 8
3+
static uint8_t tile_1_bits[] = {
4+
0x00, 0x10, 0x18, 0x10, 0x10, 0x10, 0x10, 0x00, };

0 commit comments

Comments
 (0)