Skip to content

HaewonSeo/Cub3D

Repository files navigation

Cub3D

My first RayCaster with miniLibX

Summary

This project is inspired by the world-famous eponymous 90’s game, which was the first FPS ever. It will enable you to explore ray-casting. Your goal will be to make a dynamic view inside a maze, in which you’ll have to find your way.

Instruction

  1. git clone https://github.com/HaewonSeo/Cub3D.git
  2. make
    • ./cub3D ./cubs/cub.cub : start a game
    • ./cub3D ./cubs/cub.cub --save : It generates screenshots of the initial screen of the game in bmp format.(screenshot.bmp)
  3. Press WASD, up/down arrow key : move a player
  4. Press left(<-), rigth(->) key : rotate a player's view
  5. Press ESC key : exit a game
  • Information about the game can be set in the /cubs/*.cub file.
  • .cub files have a format and must be followed.
  • The default rules are stored in the /cubs/cub.cub file.

Preview

screenshot

Reference

About

42Cursus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published