Skip to content

cloudyhug/labyrinth-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

labyrinth-generator


This project is a little labyrinth generator written in C. It is comprised of 2 main files :

  • lgen.c, that generates a labyrinth and writes the walls to a text file ;
  • bmpgen.c, that takes this text file as input and creates a BMP file out of it.

The goal is to experiment image handling, without an API, therefore in a low level way, and I always find it pleasant to make things in C (oldie but goldie, as they say !). Moreover, writing to a raw BMP file requires handling data byte by byte, and forced me to get some documentation about how BMP files are structured in the file system (header and pixel array), and it is always an interesting thing to do.


Dependencies

  • make
  • gcc

### How to run it

Run make to build the executable, then bin/bmplabyrinth <filename> <height> <width> to generate a labyrinth.

About

Labyrinth generator (as BMP image files)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published