GithubHelp home page GithubHelp logo

cub3d's Introduction

CUB3d

  • Reproduce a mimic of a Icon Game : WOFLSTEIN 3D

Mandatory Part

  • Made Using Codam MLX 42

Keybinding

    * W,A,S,D : move
    * Left & Right Arrow  : Directional keys to rotate camera
    * Up & Down Arrow :  Zoom in & out   
    * ESC to quit 

Textures

    * Textures & colors differents for each sides 
        * North: N, South: S, West: W, East: E
    * Ceilling: C, Floor: F
        * Color (R, G, B) set as [0,255]
            * Ex "225, 110, 10"

Map request

    * Containing only selected Char "01WNES"
        * Surround by Wall
            * '0' Spaces between '1' Walls
        * Position Player Letter
            * 'W,N,E,S' Direction to 'Look_ At'

Any Misconfiguration

  •       should lead to an descriptive "Error\n" Message
    

Bonus


IMG

Screenshot 2023-05-13 192735] Screen Shot 2023-06-06 at 1 31 22 PM Another World

Screen Shot 2023-06-08 at 7 54 33 PM Mars Screen Shot Field by night


Making of

Screen Shot 2023-06-23 at 2 58 57 PM

corridor

Screenshot from 2023-03-09 15-57-44] Screen Shot 2023-05-15 at 3 22 16 PM Screen Shot 2023-06-06 at 1 14 12 AM last of them

Parsing

Map

header map1


FILE HEADERS

Object

 Meta-Char-Part   
     Object represent into Map
             EX:__ ! 1/< __
  • First 'char[0]' 
      Ref. Char.  followed by space.
    
  •  Second 'char[2]' 
      Alleg. Num. followed by slash.
    
  • Third 'char[4]'
      Relativ. Char. ... or *directional.
    

Legend

   Legend-Part--Lowercase   
       Unique texture to be set further
             EX:__ a tex/ext/wood_plank.png __
  • First 'char[0]' : Name
      Textr. Char.  followed by space.
    
  •  Second Char*   : Path 
      Textr. char* fullpath ended by .png
    

Horizontal

   Dual-Part--Numeric
     Paired Texture floor and ceiling 
         EX:__  0 tex/ext/floortile.png tex/ext/tile_ceiling_.png __
  • First 'char[0]' : Numeral Name view into map
      Textr. Num.  followed by space.
    
  •  Second Char*   : Path Floor 
      Textr. char* fullpath ended by .png
                   followed by space.
    
  •  Third  Char*   : Ceilin Floor 
      Textr. char* fullpath ended by .png
    

Preset

   Pset-Part--Uppercase
     A Set of Wall Texture 
         EX:__  A abcd __
  • First 'char[0]' : Char name view into map
      Textr. Char.  followed by space.
    
  •  Second Char[2]   : West side Lowercase ref. Txtr
    
  •  Third  Char[3]   : North side Lowercase ref. Txtr
    
  •  Forth  Char[3]   : East side Lowercase ref. Txtr
    
  •  Fifth  Char[4]   : South side Lowercase ref. Txtr
    


Lexical

 Meta-char family [ MCHR ]
     Lever   : (+,!,)
     Portal  : (<,>,_,^)
     Firpit  : (=,;,:)
     Fireball: (*,#,%)
     Player  : (@,$, &)
     Spec    : (?)

cub3d's People

Contributors

ghebert42 avatar iantopy avatar

Stargazers

 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.