A simple Ray Casting 3D engine using SDL as the rendering back-end.
This was designed for kids so that it could improve their spatial recognition and analytical skills. We are looking forward to implement features that includes each age, suggestions are welcomed!😋😋
Arrow Keys-- Player DirectionsR-- RefreshM-- MapC-- Zoom Player view[-- Zoom Out in Game]-- Zoom In in GameF-- Change Views (Normal view to Panoramic view and vice versa)T-- Change Texture of walls and square columns
- C language
- SDL2 (Simple Directmedia Layer)
- Ray-Casting
- Bash
Using a Windows Operating sysytem, Navigate to the src folder and Compile with
gcc -std=c17 *.c -I{Path to SDL2\include} -L{Path to SDL2\lib} -Wall -lmingw32 -lSDL2main -lSDL2 -o raycaster
Check out this link for help.
Using Linux, Navigate to the src folder and Compile with
gcc -o raycaster *.c 'sdl2-config --cflags --libs' -lm
- Remove the line
#define SDL_MAIN_HANDLEDfrom the source codes in Linux
