Git Product home page Git Product logo

cub3d's Introduction

๐Ÿ“– cub3d - 42 Project

cub3d
absalhi's 42 cub3d Score

GitHub code size in bytes Number of lines of code Code language count GitHub top language GitHub last commit


cub3d gameplay
My cub3d showcase - YouTube

Table of Contents

This is Cub3D, a 3D first-person shooter game developed in C using the old-school graphics library, Minilibx. Inspired by classic games like Wolfenstein and Doom, Cub3D brings back the nostalgia of the golden age of gaming with its raycasting technique to render the environment, complete with walls, enemies, and objects.

Features

  • Immersive first-person gameplay with raycasting rendering technique.
  • Intricately designed levels featuring walls, floors, and ceilings.
  • A variety of enemies, each with distinct abilities and characteristics, adding challenges to your adventure.
  • Explore interactive doors, static and animated objects that enhance the gameplay experience.
  • Classic retro-inspired visuals that evoke the essence of early 3D games.

Installation

  1. Clone the repository:
git clone https://github.com/abdeljalil-salhi/cub3d.git; cd cub3d
  1. Compile the game:
make bonus
  1. Run the game:
./cub3D_bonus bonus/maps/map.cub

Map Configuration

Map data is stored as .cub file. You can check this file for a quick example.

Also, use make help to know what are the characters you can use in the map configuration.

Gameplay

  • W, A, S, D: to move around
  • Mouse: to rotate the player's view
  • Left Click: Shoot
  • E: to open a door
  • M: to toggle map display
  • 1 - 2: to change current weapon (only available/collected ones)

Contributing

Contributions are welcome! If you find any bugs or want to add new features, feel free to fork the repository and submit a pull request, or create an issue.


Thank you for checking out Cub3D! I hope you enjoy the nostalgic experience of exploring a 3D world reminiscent of the early days of gaming. If you have any questions or feedback, please don't hesitate to reach out. Happy fragging! ๐Ÿ•น๏ธ


Made by absalhi: [email protected]

Hits

cub3d's People

Contributors

abdeljalil-salhi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.