From 68b10a3ae8148649a940f3b9e9eefb3e74c124a9 Mon Sep 17 00:00:00 2001 From: Wesley Kerfoot Date: Mon, 23 Aug 2021 09:37:46 -0400 Subject: [PATCH] add the readme --- README.md | 3 +++ src/gamepkg/gui.nim | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..1aef8e8 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +## What is this? + +A simple project that implements a game of minesweeper using [raylib](https://www.raylib.com/). Mostly as a way for me to learn raylib and Nim more. diff --git a/src/gamepkg/gui.nim b/src/gamepkg/gui.nim index 0e347c3..58d677a 100644 --- a/src/gamepkg/gui.nim +++ b/src/gamepkg/gui.nim @@ -143,7 +143,7 @@ proc getTilePos(mouseX: int, mouseY: int, board: Board): int = return (y*rowSize) + x proc drawTile(heightPos: int, widthPos: int, state: TileState, reveal: bool = false): Tile = - let edge = 1.float32 + let edge = 1.float32 # How far from the edge is the X let y = boardOffset+(boxStride*heightPos) let x = boardOffset+(boxStride*widthPos)