aboutsummaryrefslogtreecommitdiffstats
path: root/demos/applications/minesweeper/mines.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@embedded.pro>2016-07-27 15:37:56 +0200
committerJoel Bodenmann <joel@embedded.pro>2016-07-27 15:37:56 +0200
commit2fe5c112b077d12874eb736bcf9cbf012f3c41ad (patch)
tree8c85d6c462e6fa39fc43473411c068a9207ae589 /demos/applications/minesweeper/mines.h
parentf2cf8b9814e7c231634860b291ba9a5adab3456f (diff)
downloaduGFX-2fe5c112b077d12874eb736bcf9cbf012f3c41ad.tar.gz
uGFX-2fe5c112b077d12874eb736bcf9cbf012f3c41ad.tar.bz2
uGFX-2fe5c112b077d12874eb736bcf9cbf012f3c41ad.zip
Adding applications/minesweeper demo
Diffstat (limited to 'demos/applications/minesweeper/mines.h')
-rw-r--r--demos/applications/minesweeper/mines.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/demos/applications/minesweeper/mines.h b/demos/applications/minesweeper/mines.h
new file mode 100644
index 00000000..d300303b
--- /dev/null
+++ b/demos/applications/minesweeper/mines.h
@@ -0,0 +1,18 @@
+#ifndef _MINES_H_
+#define _MINES_H_
+
+#define MINES_CELL_WIDTH 23 // Number of pixels
+#define MINES_CELL_HEIGHT 23 // Number of pixels
+#define MINES_FIELD_WIDTH 20 // Number of cells
+#define MINES_FIELD_HEIGHT 11 // Number of cells
+#define MINES_FLAG_DELAY 150 // Number of milliseconds
+#define MINES_MINE_COUNT 35 // Around 15%-20% field/mines ratio is nice!
+
+void minesInit(void);
+void minesStart(void);
+
+#if MINES_SHOW_SPLASH
+ void minesShowSplash(void);
+#endif
+
+#endif /* _MINES_H_ */