minesweeper

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b82f341e5b92475652b6ad9cda9c7a938c3973e9
parent e13e3e4b9e75d90c98c4cdadafed2f0986e8a838
Author: Samdal <samdal@protonmail.com>
Date:   Thu, 29 Apr 2021 12:13:07 +0200

drawtile

Diffstat:
Mmain.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/main.c b/main.c @@ -23,6 +23,7 @@ static void NewGame(void); static void UpdateDrawFrame(void); static void UpdateGame(void); static void DrawGame(void); +static void DrawTile(int x, int y); int main(int argc, char *argv[]) { // Set game area and bomb amount with command line args @@ -118,3 +119,10 @@ void DrawGame(void) { } EndDrawing(); } + +void DrawTile(int x, int y) { + // find naboring bombs + int nearby = 0; + for (int i = 0; i < TotalBombs; i++) { + } +}