You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
narnaud
4bf2ba8e40
|
3 years ago | |
---|---|---|
includes | 3 years ago | |
libft | 3 years ago | |
maps | 3 years ago | |
mlx | 3 years ago | |
sources | 3 years ago | |
textures | 3 years ago | |
LICENSE | 3 years ago | |
Makefile | 3 years ago | |
README.md | 3 years ago |
README.md
CUBE3D
Resources :
Issues:
- report invalid mapfile:
- wrong extension,
- unacessible file (wrong permission, directory, missin name)
- invalid color : Ci > 255, Ci < 0, i > 4
- invalid texture (wrong permission, missing wall orientation texture, missing used block texture (warning + use default unknow texture))
- empty line in map description,
- unauthorized character in map description (!isdigt)
Memo:
- ToDo: add F1 keycode on linux,
- Add toggle for mouse control,
Program life cycle :
Parsing
- read file,
- extract walls textures,
- extract sky and ceil colors
- import map into chained list,
- comvert list to 2D array.
- save player pos,
- handle errors,
- not closed map
- texture files not exist, not permited or with wrong extension
- impossible color used
- [-] missing map
Init
Window
Render
- display ceil, walls and floor
- display wall's texture
Control
- enable commands
- wasd to move
- [o] react to commands :
- calculate new pos,
- display new view,
- avoid colisions
- M to show minimap
- SHIFT to run
- [-] Debugs window with F1
- Exit with Esc and X
Quit
- clean and exit