Git Product home page Git Product logo

cub3d's Introduction

cub3D

My first RayCaster with MLX42

( ͡° ͜ʖ ͡°)

Requirements summary:

  1. Smooth window management
  • minimise window
  • change to another window and back
  • ESC or clicking on red cross on the window’s frame closes the window and quits the program cleanly
  1. Use different wall textures for each wall
  • North, South, East, West
  1. Support different floor and ceiling colors

  2. Window image

  • left and right arrows allow to look left and right
  • W, A, S, and D keys allow to move the point of view
  1. Map file requirements
  • blank lines allowed between elements
  • blank spaces allowed within each element definition, except for the map
  • map element must be last in map file

4.1. Non map elements requirements:

  • <type identifier> <any number of spaces> <definition>
  • For textures:
    • <(NO|SO|WE|EA)> <any number of spaces> <texture filepath>
  • For colors:
    • <(F|C)> <any number of spaces> <R,G,B>
      • each R,G,B parameter must be in range [0,255]

4.2 Map element requirements:

  • only 6 possible characters:
  • 0 for an empty space
  • 1 for a wall
  • N,S,E or W for the player’s start position and spawning orientation
  • map must be closed/surrounded by walls
  • map must be parsed as it looks in the file

cub3d's People

Contributors

nuno101 avatar knosper avatar ezpiro-m 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.