Giter VIP home page Giter VIP logo

42_cub3d's Issues

movespeed sometimes varies

Describe the bug
We both noticed an inconsistent movementspeed when walking around the game, where the player would randomly speed up.

To Reproduce
Steps to reproduce the behavior:

  1. run top in a seperate terminal
  2. Play the game
  3. look at the state of the process
    You will notice that everytime the state of the process gets changed to sleepingand then back to running the game speeds up

Expected behavior
consistent movement no matter what

crashes when thexure path in the map file is not a texture

Describe the bug
crashes when thexure path in the map file is not a texture, if you try to launch with the current maps/box.cub it segfaults

To Reproduce
Steps to reproduce the behavior:

  1. run './cub3D maps/box.cub'
  2. See error

Expected behavior
print a message that some texture is not a valid texture

Corner collision

*** Issue ***

View can get closer to the wall when the wall is approached from the corners.

With an exact 0, 90, 180 or 270 angles textures are disrupted.

Inconsistent left most single ray

** Issue **

Of the left most ray (when x = 0) wall begins and ends at a different point. Which is inconsistent with the view and the rest of the map.

** Possible solution **
Not printing the left most ray

Scaling for minimap

*** Issue ***
How to deal with bigger maps and minimap?

*** Details ***
If map is big enough it would cover a big portion of the 3D map.
Currently 5 pixels are given per element in the array.

*** Possible solutions **
Cheap and dirty fix: give a lesser amount of pixels per element depending on size of actual map size.
Optimal: show just part of the map and reveal more based on movement.

doors can be placed without being connected to a wall

doors can be placed without being connected to a wall which results in the door creating its own wall when used

To Reproduce
Steps to reproduce the behavior:

  1. run ./cub3D maps/42.cub
  2. walk through the door in the middle of the room
  3. watch the door creating walls to its left and right

Expected behavior
should be an error while parsing

hands textures can be set as wall texture

Describe the bug
hand texture can be set as a wall texture and will kinda break the programm

To Reproduce
Steps to reproduce the behavior:

  1. set i.e images/left_hand.xpm as a wall texture
  2. start cub3D
  3. turn in circles
  4. See error

Expected behavior
only textures with the size of 64 by 64 pixels should be allowed as wall texture

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Make everything work perfectly

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

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.