Coder Social home page Coder Social logo

cub3d's Introduction

CUB3D by phperrot ๐Ÿ•บ

PRESENTATION

This project aims at reproducing a basic FPS game by using the raycasting method.

WANNA PLAY? ๐Ÿ’ฅ

Installation

first, copy paste the following code on your terminal:

cd ~ && cd Downloads && git clone https://github.com/phperrot/cub3d.git cub3d && cd cub3d && chmod 777 Cub3D_bonus && chmod 777 Cub3D && ./Cub3D_bonus maps/master_map.cub

this should open a new window: Image of Cub3D

Commands

KEY Action
ESC exit game
SPACE BAR shoot
A move left
D move right
W move forward
S move backward
โ†’ turn right
โ† turn left
M hide/display map
O open/close door
P open/close secret door
option change weapon
F10 sound on/off

Rules

Collect treasures to unlock new levels !

Modifications ๐Ÿ‘จโ€๐ŸŽจ

You can now create your own map by following this norm:

Object Code
1 wall
0 floor
2 sprite #1
3 sprite #2
N/E/W/S player initial position + orientation
A ammo
B bonus
O ennemy
T treasure
D door
P secret door

You can have a look at the subject for further details on how .cub files work.

โš ๏ธ Be careful ! All your paths must be valid and your map must be closed (but not necessarily a square ๐Ÿ˜‰)

WANNA CODE? ๐Ÿ‘จโ€๐Ÿ’ป

Some useful links can be found in the documentation file

cub3d's People

Contributors

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