Code Monkey home page Code Monkey logo

lilafallet / cub3d_42 Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 18.56 MB

This project is inspired by the world-famous eponymous 90’s game, which was the very first FPS : Wolfenstein 3D. The purpose of this project is to learn about raycasting and to make a dynamic view inside a maze inspired by "Doctor Who" serie's theme, and in which you'll have to find your way. Enjoy !

Makefile 2.46% C 91.81% Roff 5.57% Perl 0.17%
42 42born2code 42school 42projects raycasting c libmath 3d minilibx cub3d

cub3d_42's Introduction

CUB3D_42

This project is inspired by the world-famous eponymous 90’s game, which was the very first FPS ever : Wolfenstein 3D. The purpose of this project is to learn about raycasting and to make a dynamic view inside a maze in which you will have to find your way. Enjoy this Doctor Who theme !

Building Mandatory part

$> git clone https://github.com/lilafallet/CUB3D_42.git

$> cd CUB3D_42

$> make

$> ./Cub3D resources/map/perfect.cub

Editing map : You can change the entire game environment in ressources/map/ .cub file

Control :

  • Moove : WASD (qwerty) or ZQSD (azerty)
  • Close the window : ESC key or red cross
  • Save a rendered image in bmp format : second argument is "--save"

$> ./Cub3D resources/map/perfect.cub --save

Building Bonus part

$> git clone https://github.com/lilafallet/CUB3D_42.git

$> cd CUB3D_42

$> make bonus

$> ./Cub3D resources/map/perfect.cub

List of bonus :

  • Collision wall
  • An HUD
  • Life bar
  • Collision object
  • Earning points/or losing life by picking up objects/traps
  • Minimap
  • Restart mode
  • Advanced key and window's resolution management

Life bar and minimap

Lost life

Restart mode (press R key)

cub3d_42's People

Contributors

lilafallet avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.