https://github.com/aelabassi/maze
ALX foundation, month #8: Portfolio project: Building a 2D Maze using C, and SDL2 library
https://github.com/aelabassi/maze
c-language graphics-programming raytracing sdl-ttf sdl2
Last synced: 6 months ago
JSON representation
ALX foundation, month #8: Portfolio project: Building a 2D Maze using C, and SDL2 library
- Host: GitHub
- URL: https://github.com/aelabassi/maze
- Owner: aelabassi
- Created: 2024-09-01T09:48:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-14T11:41:53.000Z (over 1 year ago)
- Last Synced: 2025-03-13T23:44:17.197Z (over 1 year ago)
- Topics: c-language, graphics-programming, raytracing, sdl-ttf, sdl2
- Language: C
- Homepage:
- Size: 5.85 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Portfolio project: The Maze project
This game uses Ray casting to render 2D textures: walls, floor, ceiling; into a 3D world, where the user controls the player i.e. the camera to navigate through the maze
## Tools and APIs:
### SDL2:
SDL2 is most cross-platfrom used library for game develpements, it's designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.
### UPNG:
`upng` is a lightweight, fast, and simple PNG encoder and decoder library written in C. It is designed to be easy to use and integrate into various projects, providing a straightforward way to handle PNG images. The library is particularly useful for applications that require efficient PNG image processing without the overhead of more complex libraries.
`upng` is used instead of `SDL2_image` for lightweight, and fast use.
## Compilation
### CMAKE:
In unix systems: Linux, and MacOs, you need only to download either the binary files of SDL2 library, or compile, following this link SDL2
copy past:
```
mkdir build && cd build && cmake .. && make
```
### Makefile:
Only in Linux machines i.e. Ubuntu:
```
make build && make run
```
or:
```
gcc -Wall -Wextra -Werror -pedantic -lm src/*.c -Iinclude/ -o Maze `sdl2-config --cflags` `sdl2-config --libs`
```
## Demo
[](https://www.youtube.com/watch?v=V8RVFhUO8Yc&ab_channel=ElAbassiAbderrazaq)