Browse Source

add the readme

master
Wesley Kerfoot 3 years ago
parent
commit
68b10a3ae8
  1. 3
      README.md
  2. 2
      src/gamepkg/gui.nim

3
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.

2
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)

Loading…
Cancel
Save