Coder Social home page Coder Social logo

dimaszhbankovskii / cub3d_42 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 287 KB

The cub3d project is a mini-walker game using the raycasting technology.

Makefile 5.04% C 76.81% Roff 7.31% Perl 0.22% Shell 0.59% Objective-C 10.03%
c graphics minilibx raycasting-game

cub3d_42's Introduction

cub3d_42 C icon 42 icon 21 icon

Localization

English localization

Contents

Goal

The cub3d project is a mini-walker using the raycasting technology, which was used in the first shooter of the 90s Wolfenstein. The goal of the project is to create a labyrinth with texture rendering of walls, floor, ceiling, in which you can move around.

Back to contents

Installing and building the program

Download:

$> git clone https://github.com/Dimaszhbankovskii/cub3d_42.git

Installation (for linux platform):

$> cd cub3d_42/cub3d_linux
$> make

Installation bonus part:

$> make bonus

Launching the program with a map in file map1.cub:

$> ./cub3d maps/map1.cub

Deletion:

$> make fclean

Back to contents

Control

  • move around the level with the keys: W A S D
  • rotate view camera with arrow keys: <- ->
  • exit program: with key ESC or close the program window

Back to contents

General rules

  • The program is compiled by the compiler gcc
  • The project uses a graphic library mlx:
  • When launched, the program takes 1 argument - the map file
  • The map file contains a description of the paths to the loaded textures, the color of the floor and ceiling in rgb format, the geometry of the map
  • In the main part of the wall are not material, you can pass through them
  • In the bonus part, the walls are material, it is impossible to move through the textures

Back to contents

Русская локализация

Содержание

Цель

Проект cub3d - минибродилка с использованием технологии raycasting, которая применялась в первом шутере 90х Wolfenstein.
Цель проекта создать лабиринт с отрисовкой текстур стен, пола, потолка, в котором можно передвигаться.

К содержанию

Установка и сборка программы

Скачивание:

$> git clone https://github.com/Dimaszhbankovskii/cub3d_42.git

Установка (для платформы linux):

$> cd cub3d_42/cub3d_linux
$> make

Установка бонусной части:

$> make bonus

Запуск программы с картой map1.cub:

$> ./cub3d maps/map1.cub

Удаление:

$> make fclean

К содержанию

Управление

  • передвижение по уровню клавишами: W A S D
  • поворот камеры обзора клавишами стрелок: <- ->
  • выход из программы: клавиша ESC или закрытие окна программы

К содержанию

Общие правила

  • Сборка программы осуществляется компилятором gcc
  • В проекте используется графическая библиотека mlx:
  • При запуске программа принимает 1 аргумент - файл карты
  • Файл карты содержит описание путей до подгружаемых текстур, цвет пола и потолка в rgb формате, геометрию карты
  • В основной части стены не являются материальными, через них можно проходить
  • В бонусной части стены материальны, передвигаться через текстуры невозможно

К содержанию

cub3d_42's People

Contributors

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