Giter Club home page Giter Club logo

cub3d's Introduction

cub3D

cover

Raycasting project (21-school / Ecole 42)

How it looks:

gameplay

Setup and usage

git clone https://github.com/kukinpower/cub3D.git
cd cub3D/cub3D
make
./cub3D map.cub

Controls

W A S D					move
←					turn left
β†’					turn right

Configuration file map.cub

Config file called `map.cub`

R 					resolution
C					ceiling rgb color
F					floor rgb color
NO SO WE EA				paths to textures
S					path to sprite
					empty lines

valid map is surrounded by walls (1) and can contain these characters
1					wall
0					player can move here
2					sprite/item
N S E W					player position and view direction
space					empty space (player can't see them)

map can't be splitted by empty lines

Example of a valid config file: valid configuration file

πŸ•΅πŸ½β€β™€οΈ Research

Core

I built the graphics engine using this guide: Lode's Computer Graphics Tutorial

And peer2peer communication

Maths

Graphics

Generate BMP

Others (not used in final project)

Texture credits

Author

Roman Kukin

developer
school 21 (Ecole 42) student

linkedin github twitter

cub3d's People

Contributors

imgbotapp avatar romanwrites avatar

Stargazers

 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.