Skip to content
/ cub3d Public

This project is inspired by the world-famous eponymous 90's game, which was the first FPS ever. It will enable you to explore ray-casting. Your goal will be to make a dynamic view inside a maze, in which you'll have to find your way.

Notifications You must be signed in to change notification settings

mmasstou/cub3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cub3D - My First RayCaster with miniLibX

Table of Contents

Introduction

This project, inspired by the iconic Wolfenstein 3D game, is a first-person perspective maze exploration using Ray-Casting principles. Developed in C with miniLibX, cub3D challenges you to create a realistic 3D graphical representation inside a maze.

Goals

  • Enhance skills in C programming, basic algorithms, and information research.
  • Develop graphic design skills, including window management, color handling, and event handling.
  • Explore practical applications of mathematics in creating efficient algorithms.

Getting Started

  1. Clone the repository.
  2. Compile the project using the provided Makefile.
  3. Run the executable with a map file in the format *.cub as the first argument.

Usage

  • Use arrow keys to look left and right.
  • Use W, A, S, and D keys to move through the maze.
  • Press ESC or close the window to quit the program.

Mandatory Part

  • Create a 3D graphical representation using Ray-Casting.
  • Smooth window management.
  • Display different wall textures based on the wall's facing side.
  • Set floor and ceiling colors.
  • Parse scene description from a .cub file.
  • Handle errors gracefully.

Bonus Part

Bonuses are evaluated only if the mandatory part is perfect.

  • Wall collisions.
  • Minimap system.
  • Doors that can open and close.
  • Animated sprite.
  • Rotate the point of view with the mouse.

Examples

  • Original Wolfenstein3D game using RayCasting.
  • Example of the project with mandatory features.
  • Bonus examples with a minimap, floor/ceiling textures, animated sprites, etc.

About

This project is inspired by the world-famous eponymous 90's game, which was the first FPS ever. It will enable you to explore ray-casting. Your goal will be to make a dynamic view inside a maze, in which you'll have to find your way.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published